Java innere Methode

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