集合list

来源:互联网 发布:微信刷步数软件 编辑:程序博客网 时间:2024/06/07 05:24

Collection接口成员方法

boolean add(E e)
boolean remove(Object o)
void clear()
boolean contains(Object o)
boolean isEmpty()
int size()

boolean addAll(Collection c)
boolean removeAll(Collection c)
boolean containsAll(Collection c)
boolean retainAll(Collection c)

List接口成员方法

void add(int index,E element)
E remove(int index)
E get(int index)
E set(int index,E element)
ListIterator listIterator()



0 0