ArrayList实现原理 ArrayList先new10个,然后在动态扩容。 Arrays.copyOf(elementData, size); System.arraycopy(elementData, 0, a, 0, size);