Java -Subfunktion

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