006-集合-Collection
remove
removeAll
contains
containsAll
iterator==每次调用,生成一个新的iterator
iterator==remove
"Tom".equals(object)
iterator.remove
for(Object obj : collection){
}
for(集合元素的类型 局部变量 :集合对象)
===========Collection--List
有序,可重复,长度可变(动态数组)
ArrayList--List 主要实现类
LinkedList
Vector--List 古老实现类
capacity
1-add(int index, Object ele)
2-addAll(int index, collection eles)
3-get(int index)
4-indexOf(Object obj)
5-lastIndexOf(Object obj)
6-set(index, Object obj)
7-remove(int index)
8-subList(int fromIndex, int toIndex)

浙公网安备 33010602011771号