摘要:
//方法引用public class LambdaTest2 { @Test public void test(){ Consumer<String> consumer = new Consumer<String>() { @Override public void accept(String s) 阅读全文
摘要:
@Test public void test1(){ Runnable runnable1 = new Runnable() { @Override public void run() { System.out.println("I like to drink juice"); } }; runna 阅读全文
摘要:
//动态代理 public class ProxyTest2 { public static void main(String[] args) { SuperMan superMan = new SuperMan(); Human proxyInstance = (Human) ProxyFacto 阅读全文