Java; Generating many indexed object names in loops

Carlis

Senior member
May 19, 2006
237
0
76
Hi

I need a loop that creates objects of my class which is called "particle"
I want the object to be called "p" + "an index". In addition, I want an another loop to carry out a method that the particle class has on each specific object. What to do?