Assuming whe have 8 instances of a class and 8 arrays outside the class. Something like:
float[] t1,t2,t3,t4,t5,t6,t7,t8;
public void myclass{
How can we access the array fields from inside the class? So that the first instance of the class corresponds to the first array "t1" the second to "t2" etc.
}
for (int i = 0; i < 8; i++) {
classID[i] = new myclass(i);
}
float[]. I would usedouble[]unless you have a very good reason.