JavaPatternMatching/testBytecode/Lam1.java
2017-10-06 13:31:36 +02:00

11 lines
208 B
Java

import java.util.function.Function;
public class Lam1{
public Lam1() {
Function<String,String> fun = (x) -> x+"1";
fun.apply("2");
Runnable lam = () -> System.out.println("lambda");
lam.run();
}
}