How do you loop through an ArrayList within an ArrayList?
For example, If I have an ArrayList called plants of Plant objects. And each Plant object has a random number of flowerNames inside. How do I go through the ArrayList, stop at each Plant and print out the Plant's list of flowerNames? (just an example) and then move on to the next Plant, etc.
Plant: has an ArrayList of Flowers: has an ArrayList of flowerNames
Plant is in one class, Flowers is in another class
Is there a way to do this with the standard for loop? Not interate...?