List接口之ArrayList

1.List是Collection的子接口 2.List接口的主要實現類ArrayList 3.常用方法 void add(int index, Object ele):在指定的索引位置添加元素 boolean addAll(int index, Collection eles):在指定的索引位置添加一個集合 Object get(int index):獲取指定索引位置的元素 int indexO
相關文章
相關標籤/搜索