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
as said before, you can either use
a[i].name = Integer.toString(i);
or
a[i].name = ""+i;
or any other mentioned way;
You should try something like:
a[i].name = String.valueOf(i)