How to loop through objects?

Cool! Thanks!

Oh and yes, I can do stuff with mousePressed and all that. This was just a short snippet I created.