摘要: public static void main(String[] args) { int[] array = { 42, 20, 17, 13, 28, 14, 23, 15,3 }; Test test = new Test(); // test.bubbleSort(array); // test.selctionSort(array); // tes... 阅读全文
posted @ 2017-05-13 22:11 蹭饭熊 阅读(227) 评论(0) 推荐(0)
摘要: ArrayList<String> list = new ArrayList<>(); // 非线程安全,有序可重复,允许元素可以有一个或多个null、底层由数组实现、查询较快插入与与删除元素的速度慢 // jdk1.8 初始容量为10扩充容量oldCapacity + (oldCapacity > 阅读全文
posted @ 2017-05-13 09:58 蹭饭熊 阅读(148) 评论(0) 推荐(0)