Restore the algorithm

Report a typo

Put the lines in the correct order to illustrate what happens when you add a new element to the full ArrayList.

The operation is add(int index, E element).

Put the items in the correct order
A new array with a bigger size is created.
All subsequent elements are moved if needed.
All existing elements are copied to the new array.
The new element is placed at a specific index.
___

Create a free account to access the full topic