i am just trying to populate this array with some information. i have no idea why, but i am getting:
java.lang.ArrayIndexOutOfBoundsException: 0
im probably just stupid 0_o... but, here is my code:
private boolean populated = false;
private int blockList[][] = {};
public void update(){
if(populated == false){
int a = 0;
for(int i = 0; i < 200; i++){
for(int j = 0; j < 50; j++){
blockList[a][0] = i;
blockList[a][1] = j;
blockList[a][2] = 1;
a++;
}
}
populated = true;
}
}
all input, even if not direct help, is very much appreciated.