I need some help with how this array works:
String[][] stringz = new String[5][4];
System.out.println(stringz[x][y]);
When I try to output using stringz[1][3], I have the null data output.
when I try to output using stringz[0][3], I also have the null data output.
I know that in arrays index begins by 0.
So I also want to output the data in [0][4]
But java compilation shows me an error? Why? If i have 5 data boxes (5-1) = index #4 should be the last?
stringz, is [4][3]. You are violating this constraint by using a number greater than 3 for the 2nd index.new String [m][n], the largest indices in this array would bearray[m-1][n-1].