I'm getting an array index out of bound exception on the following code. I used debugger and this is what happened.
JLabel[][] labelHolder = new JLabel[8][8];
for(int i=0; i<8; i++){
for(int j=0; i<8; j++){
labelHolder[i][j] = new JLabel (); <- error occur right on this line when i=j=0
I have not clue why this is because if I just swap out the i and j for 0 and 0, it work perfectly :S