Best way to handle a collection of objects?
Hi, Im pretty new to java although not new to programming in general.
I wish to create an entity (for example, call it "BookClub"). That entity can have an unknown number of child objects (for example call them "Members").
I want to have a collection that I can call methods on (for example "BookClub.sendMessage()"). In this way, I can write some code that will iterate through all members of the "BookClub" and send a message to each one of the "Member.GetEmailAddress()"
Is the solution to use java collections to do this, or am I missing something very obvious about just using classes?!
Hope that all makes sense!!