Data structure of ArrayList

ArrayList is essentially a dynamic array. When you add an element for the first time, the size of the array will change to 

DEFAULT_CAPACITY 10, after adding elements continuously, the capacity will be expanded. When deleting an element, it will count according to the positional relationship 

The group elements are moved as a whole (copy).

Guess you like

Origin blog.csdn.net/qq_36428821/article/details/112548839