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測(cè)試成功")); }}哪里錯(cuò)了?
添加回答
舉報(bào)
0/150
提交
取消