Java Sub Metode

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