摘要: public class Test { public static void main(String[] args) { User u1 = new User(1, "a", 21); User u2 = new User(2, "b", 22); User u3 = new User(3, "c" 阅读全文
posted @ 2022-04-19 21:40 不写代码想写诗的虫子 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 函数型接口 源码分析 @FunctionalInterface public interface Function<T, R> { /** * Applies this function to the given argument. * * @param t the function argumen 阅读全文
posted @ 2022-04-19 21:38 不写代码想写诗的虫子 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 三大方法 // Executors 工具类: 3大方法 // 使用了线程池之后,使用线程池来创建线程 public class Demo01 { public static void main(String[] args) { ExecutorService threadPool = Executo 阅读全文
posted @ 2022-04-19 21:34 不写代码想写诗的虫子 阅读(17) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示