摘要:
@Test public void testA(){ String[] arr1 = new String[]{"B","A","H","E"};// String[] arr1 = DataUtils.sortArray(arr); //第一种方式 for (int i = 0; i < arr1 阅读全文
摘要:
public class Solution3 { public static ExecutorService executorService = Executors.newFixedThreadPool(10); public static void main(String[] args) thro 阅读全文
摘要:
在 jdk 1.5 之前,我们在定义一个集合时,无须给定元素类型: List list = new ArrayList(); ArrayList al = new ArrayList();但是,在 jdk 1.5 之后,Java增加了泛型机制,它要求我们在定义集合时给定元素类型: List<Stri 阅读全文