Does Java have a function that gets the length of a specified dimension of a multidimensional array?
No, because Java doesn't have multi-dimensional arrays. It only has jagged arrays, i.e. arrays of arrays.
No. Java doesn't have multi-dimensional arrays. What it has is arrays of arrays (etc) but each level can be a different size.
int[][] ints = { { 1 }, {1,2,3}, {5,6} };
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With