摘要:
创建型 简单工厂 public class DefaultThreadFactory implements ThreadFactory { @Override public Thread newThread(Runnable r) { Thread t = newThread(FastThreadL 阅读全文
摘要:
查找 Arrays工具类中二分查找 private static int binarySearch0(int[] a, int fromIndex, int toIndex, int key) { int low = fromIndex; int high = toIndex - 1; while 阅读全文