摘要: Function<Integer, Integer> f1 = arg -> arg*3; System.out.println(f1.apply(2));//6 Function<T, R>T是传参类型,R是返回值类型。使用apply方法执行 阅读全文
posted @ 2022-04-02 14:10 热心邻居老王 阅读(183) 评论(0) 推荐(0) 编辑