I'm trying to fill this array floorArray through the method fillUp in my Golv class.
This is the code from my main Class:
Golv golv = new Golv(this);
int[] floorArray = new int[FRAMEWIDTH];
golv.fillUp(floorArray);
And this is the relevant snippet from my Golv class:
public void fillUp(int[] floorArray){
floorArray[0] = 5;
}
This produces ""VariableDeclaratorID" expected after this token." and "syntax error misplaced constructs" after the golv.fillUp(floorArray); row.
What am I doing wrong?