摘要: 1、引入log4j、commons-logging等jar包,或者其他日志工具。 2、在src目录下(classpath路径)下配置log4j.properties等日志配置文件。 3、引入日志private static final Logger LOG = LogManager.getLogge 阅读全文
posted @ 2020-03-26 16:27 工设091 阅读(359) 评论(0) 推荐(0)
摘要: package t1; public class TestThread { public static void main(String[] args) { boolean isDaemon = args.length != 0;// 守护线程会等待最后一个非守护线程结束而死亡 Runnable r 阅读全文
posted @ 2020-03-26 15:00 工设091 阅读(154) 评论(0) 推荐(0)
摘要: package t1; public class test00 { public static int[] mergeSort(int[] nums, int l, int h) { if (l == h) return new int[] { nums[l] }; int mid = l + (h 阅读全文
posted @ 2020-03-26 13:36 工设091 阅读(128) 评论(0) 推荐(0)
摘要: package t1; public class Test<K, V> { private Entry[] table; private static final int CAPCITY = 2; public void put(K k, V v) { if (table == null) { in 阅读全文
posted @ 2020-03-26 11:43 工设091 阅读(510) 评论(0) 推荐(0)
摘要: package t1; public class Lambda { public static void main(String[] args) { Functiuon<Integer, Integer> square = x -> x * x; Functiuon<Integer, Integer 阅读全文
posted @ 2020-03-26 11:18 工设091 阅读(248) 评论(0) 推荐(0)
摘要: package t1; import java.util.ArrayList;import java.util.List;import java.util.concurrent.ForkJoinPool;import java.util.concurrent.RecursiveAction; pub 阅读全文
posted @ 2020-03-26 10:53 工设091 阅读(154) 评论(0) 推荐(0)