JAVA学习笔记之十一---初识集合
1.为什么需要集合?
方便一些操作,例如通常我们定义一个数组时使用 String strs = new String[6];只能定义一个固定长度的字符串数组,而我们在使用集合时,通过List
2.集合框架的组成
黄色为接口;;;;红色为实现类;;;接口是不能被实例化的。。。
集合框架->Collection->List->ArrayList
->Linkedlist
->Set
->Map->HashMap
->HashTable