public interface Test { void test();}public class BTest { public void set(Test t){ System.out.println(t); t.test(); } public static void main(String[] args){ BTest b=new BTest(); b.set(()-> System.out.println("lambda測試成功")); }}哪里錯了?
添加回答
舉報
0/150
提交
取消