ArrayList实现原理

ArrayList先new10个,然后在动态扩容。

Arrays.copyOf(elementData, size);

System.arraycopy(elementData, 0, a, 0, size);

原文地址:https://www.cnblogs.com/rgqancy/p/7115070.html