JavaTXCompilerInJavaTX/testBytecode/Lam1.java

11 lines
208 B
Java
Raw Permalink Normal View History

2017-10-06 11:31:36 +00:00
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();
}
}