1.int size():返回集合中元素的个数
2.boolean add(Object obj):向集合中添加一个元素
3.boolean addAll(Collection coll):将coll中的所有元素添加到当前集合中
4.boolean isEmpty():判断集合是否为空
5.void clear():清空集合元素
6.boolean contains(Object obj):判断集合中是否包含指定的元素
7.boolean containsAll(Collection coll):判断集合中是否包含指定的集合
8.void retainAll(Collection coll):求当前集合与coll的共有元素,返回给当前集合
9.boolean remove(Object obj):删除集合中的指定元素
10.void removeAll(Collection coll):从当前集合中删除包含在coll中的元素
11.boolean equals(Object obj):判断集合中的所有元素是否完全相同
12.toArray():将集合转化为数组
13.Iterator iterator():返回一个Iterator迭代器,实现集合的遍历
Iterator iterator = coll.iterator();
while(iterator.hasNext()){
System.out.println(iterator.next());
}