Metoda wewnętrzna Java

Function<String, String> trible = s -> s+s+s;
System.out.println(trible.apply("X"));           // prints XXX
Yordi