1: interface Climb {
2: boolean isTooHigh(int height, int limit)
3: }
4:
5: public class Climber {
6: public static void main(
String [] args) {
7: check ((h,l) -> h.append(l).isEmpty(), 5); // what should this be to make it run?
8: }
9: private static void check(Climb climb, int height) {
10: if(climb.isTooHigh(height, 10) System.out.println("too high");
11: else System.out.println("ok");
12: }
13: }
I struggle with reading these lambda expression .... can anyone point me to a tutorial that explains it differently than in the book as I do not get it.