For example, to add elements to the ArrayList , use the add() method:
Read moreCan a class have a list of its own objects?
Absolutely . (And the same is true for a List<Account> , or just a single Account field etc.)
Read moreHow do you handle a list of objects in Java?
Java List Example
Read more