itarticle jdk源码之arraylist源码剖析 成员变量 构造方法 trimToSize()方法 size()方法 isEmpty()方法 contains(Object o)方法 indexOf(Object o) 方法 lastIndexOf(Object o) 方法 clone()方法 toArray()方法 toArray(T[] a)方法 get(int index)方法 set(int index, E element)方法 add(E e)方法 add(int index, E element)方法 remove(int index)方法 remove(Object o)方法 clear()方法 addAll(Collection extends E> c)方法 addAll(int index, Collection extends E> c)方法 removeAll(Collection> c) retainAll(Collection> c) 方法 序列化与反序列化 listIterator(int index)方法 subList(int fromIndex, int toIndex)方法 forEach(Consumer super E> action)方法 Sort方法 2021-01-18 0