Separate objects in an ArrayList

Aaaah Like so. The problem with an array is that for my project I don’t want a predetermined number inside the array, but you are right an array would be eassier