In java, what would myArray.length be referencing in a 2D array? E.g.
double[][] myArray = new double[3][5];
say you want to run a couple of for-loops over the array without putting the rows and columns in an argument to get hold of their value, is there a neat way to do this?
Use
myArray.lengthandmyArray[0].length. (This assumes that all of your “sub”-arrays are the same length.)