Hi. I have a 2D array in a particular class file. Now, I want to equate a 2D array from another class to it. May I know how to do it? So far, this is what I've done:
private double residuescores = MatchApplet.mydouble;
residuescores is from a class itself, and mydouble is from the class MatchApplet. However, I realised by equating it like that, the 2D array, mydouble, is actually empty or has got error. May I know how to equate it properly? Do I do it like this?
private double residuescores = MatchApplet.mydouble[a][b];
If I do it the second way, there's error saying the a and b is not declared. However, I've declared it in MatchApplet already. I need help here. Thank you!