集合01
单列集合
Controller
List Set
ArrayList,LinkedList HashSet TreeSet
双列集合
HashMap TreeMap
Controller接口的常用方法
-
增加 add() addAll()
-
删除 clean() remove()
-
修改
-
查看 iterator()
-
判断contains() equals() isEmpty()
List接口常用方法
添加 add
修改 set
查看 get
循环 for循环 增强for循环 迭代器
泛型通配符
List<?>
泛型的上线
List<? extends Person>
泛型的下线
List<? super Person>
LinkedList
添加 offer