Related Tags
In Java, arrays can’t grow once they have been created; so, to add an element, you need to:
Create a new, larger array.
Copy over the content of the original array.
Insert the new element at the end.