How to find the lengths of a multidimensional array with non equal indices?
For example, I have int[][] pathList = new int[6][4]
int[][] pathList = new int[6][4]
Without actuall
3-D array length
int[][][] a = new int[2][3][7]; int length=0; for(int[][] i:a){ for(int j[]:i){ length+=j.length; } } System.out.println(length);