获得集合内元素个数 : list.size();
默认添加: list.add( e);
指定下标添加(添加后下标后的元素向后挪一位):list.add(index, e);
删除元素: 返回是否删除 :list.remove( e);
直接删除指定下标的元素(只删除找到的第一个相符合的元素):list.remove(index);
替换元素(替换掉指定下标的元素):list.set(index, e);
取出元素:list.get(index);
清空集合:list.clear();
判断集合中是否存在某个元素(存在返回true,不存在返回false):list.contains(e);
判断集合是否为空(空则返回true,非空则返回false):list.isEmpty();
将集合转换为字符串:list.toString();
截取集合:list.subList(fromindex,toindex);
将集合转换为数组:默认类型 :list.toArray();
指定类型(objects为指定类型的数组对象,并将转换好的数组赋值给objects数组):list.toArray(objects)