方法名称 | 备注 |
void add(int index, E element) | 在此集合中的指定位置插入指定的元素 |
E remove (int index) | 删除指定索引处的元素,返回被删除的元素 |
E set(int index,E element) | 修改指定索引处的元素,返回被修改的元素 |
E get(int index) | 返回指定索引处的元素 |
方法名称 | 说明 |
public void addFirst(E e) | 在该列表开头插入指定元素 |
public void addLast(E e) | 在该列表末尾插入指定元素 |
public E getFirst() | 返回此列表中的第一个元素 |
public E getLast() | 返回此列表中的最后一个元素 |
public E removeFirst() | 删除列表中的第一个元素,并返回 |
public E removeLast() | 删除列表中的最后一个元素,并返回 |
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |