Using an example:
Let say I have a class call Gun. I have another class call Bullet.
Gun
Bullet
Class Gun has an
You want to follow the same pattern as before:
for (Type curInstance: CollectionOf) { // use currInstance }
In this case it would be:
for (Bullet bullet : gunList.get(2).getBullet()) { System.out.println(bullet); }