I am fairly new to Java and am having some difficulty with implementing an arraylist.
I have some classes that contain variables and i have a new class that contains my arraylist. I would like to know how i would get the variables from the other classes into the arraylist in the new class. I know that you would use the add methods, but am unsure of the code to do it.
Example code would be very useful.