1.添加功能
boolean add(Object obj):添加一个元素
boolean addAll(Collection c):添加一个集合的元素 返回结果一定为true
2.删除功能
void clear():移除所有元素
boolean remove(Object o):移除一个元素
boolean removeAll(Collection c):移除一个集合的元素 调用的集合有变化返回true,否则返回false
3.判断功能
boolean contains(Object o):判断集合中是否包含指定的元素
boolean contaisAll(Collection c):判断集合中是否包含指定的集合
boolean isEmpty():判断集合是否为空
4.获取功能
Iterator<E> iterator();
5.长度功能
int size():元素的个数
6.交集功能
boolean retainAll(Collection c):调用集合内元素变为两个集合都有的元素 调用的集合有变化返回true,否则返回false
7.把集合转换为数组
Object[] toArray()
boolean add(Object obj):添加一个元素
boolean addAll(Collection c):添加一个集合的元素 返回结果一定为true
2.删除功能
void clear():移除所有元素
boolean remove(Object o):移除一个元素
boolean removeAll(Collection c):移除一个集合的元素 调用的集合有变化返回true,否则返回false
3.判断功能
boolean contains(Object o):判断集合中是否包含指定的元素
boolean contaisAll(Collection c):判断集合中是否包含指定的集合
boolean isEmpty():判断集合是否为空
4.获取功能
Iterator<E> iterator();
5.长度功能
int size():元素的个数
6.交集功能
boolean retainAll(Collection c):调用集合内元素变为两个集合都有的元素 调用的集合有变化返回true,否则返回false
7.把集合转换为数组
Object[] toArray()