如何编译Java lambda函数?
Loop.times(5, () -> { System.out.println("looping");});
for(int i = 0; i < 5; i++) System.out.println("looping");
new CallableInterfaceImpl(){ public void call(){ for(int i = 0; i < 5; i++) System.out.println("looping"); }}.call();
相关分类