Let\'s say I run on a for with i from 0 to 6, each run in the for I initialize a class that gets as a parameter a name, ex:
ClassThing[] a = new ClassThing[6]; f
You should try something like:
a[i].name = String.valueOf(i)