摘要: 例子:StreamDemo 函数式接口 public static void main(String[] args) { /** * 四大函数是接口 * */ // 函数接口 Function<String,Integer> function=new Function<String, Integer 阅读全文
posted @ 2021-06-08 21:56 张紫韩 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 例子:ThreadPoolDemo,避免new 连接 为什么要用线程池 如何使用线程池 Arrays.copyOf(); 数组的工具类 Collections.synchronizedList(); 集合的工具类 ExecutorService threadPool= Executors.newFi 阅读全文
posted @ 2021-06-08 19:01 张紫韩 阅读(45) 评论(0) 推荐(0) 编辑