I have a matrix for example 5×10.
double matrix = new double
I would like to know the size of these matrix, But if I do it:
It only return me columns size: 10
How could I do it?
matrix.length gives you the number of rows.
matrix.length gives you the number of columns (assuming all rows have the same length).