I am new to Java.
My loop array goes out of bounds. I think my code is all fine.
Can someone help me?
String[][] seats = new String[5][3];
for(int r = 1; r <= seats.length; r++){
System.out.printf(r+ "." );
for (int c = 1; c <= seats[r].length; c++){
System.out.print(" 0");
}
System.out.println("");
}