Your Climbinterface conforms to a functional interface contract , that is, an interface with one abstract method.
Therefore, an instance Climbcan be implemented using a lambda expression, that is, an expression that takes two ints as parameters and returns a boolean value in this case.
(h, l) -> h > l - , . h l - (int), h > l ( boolean). , , :
Climb climb = (h, l) -> h > l;
System.out.println(climb.isTooHigh(0, 2)); //false because 0 > 2 is not true