I'm trying to get the default null values out of my 2d String array.
I've got this so far.
String[][] sterren = new String[12][37];
int h = 12;
String leeg = "";
while(h > 0){
int b = 37;
sterren[h][b] = leeg;
while(b > 0){
sterren[h][b] = leeg;
b = b-1;
}
h = h-1;
}
with h = height and b = width
When I try to execute this I get an arrayindexoutofbounds 12 on the line sterren[h][b] = leeg;
. why is that since I clearly made 12 columns and 37 rows.