A rectangular 2 dimensional array simply means that every row has the same number of elements. ex:
1 2 3 4 5 6
2 3 4 5 6 7
3 4 5 6 7 8
1 2 3 4 5 6
this is rectangular because every row has 6...
Type: Posts; User: helloworld922
A rectangular 2 dimensional array simply means that every row has the same number of elements. ex:
1 2 3 4 5 6
2 3 4 5 6 7
3 4 5 6 7 8
1 2 3 4 5 6
this is rectangular because every row has 6...
you're checking the lengths incorrectly. The .length field only returns the length for that dimension.
ex.
int[][] myMatrix = new int[5][10];
System.out.println("there are " +...