2D array problem Java
•
Java
If I have a 2D array arr [rows] [columns], how can I find the size of rows and columns respectively with arr.length?
Solution
arr.length
arr.length
Will be the number of rows
arr[x].length
Will be the number of columns in row X
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码