List<E>

List<E>——列表

有序,存储和读取的顺序是一致的

由整数索引

允许重复

add(int index,E element)——将元素插入指定位置

get(int index)——获取指定位置的元素

remove(int index)——删除指定位置的元素

set(int index,E element)——替换指定位置的元素,返回修改之前的元素

猜你喜欢

转载自www.cnblogs.com/dajingshao/p/11816202.html
E