摘要: 1.方法引用 对象::方法 引用类型一样public void test5(){ Consumer<String> con = System.out::println; con.accept("消费一下"); Supplier<String> s1 = new Supplier<String>() 阅读全文
posted @ 2022-05-09 21:07 写代码的小哥哥 阅读(110) 评论(0) 推荐(0)