08-19-2012, 09:04 PM
Ah, so here's the problem. A few lines above your error line, you have this line:
[code2=java]for (int y = 0; y < grid.length; y++);[/code2]
You inserted a semi-colon ( at the end of your for opening, which effectively destroys the "y" variable, hence your error. Simply remove the semi-colon and you should be good!
[code2=java]for (int y = 0; y < grid.length; y++);[/code2]
You inserted a semi-colon ( at the end of your for opening, which effectively destroys the "y" variable, hence your error. Simply remove the semi-colon and you should be good!