We have defined a functional interface called NumberPredicate with one abstract method, accept(), which takes an integer parameter and returns a boolean.
Use a lambda expression to implement this interface, enabling the filtering of even numbers from a list. In the main function, read a line of input representing space-separated integers, turn them into a list, and utilize the 'NumberPredicate' implementation to filter and print the even numbers.