Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get length of 2d array java

int[][] array2D = { {1,2,3,4,5,6}, {7,8,9,10} };
int length = array2d[0].length + array2d[1].length; // 10
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #length #array #java
ADD COMMENT
Topic
Name
4+4 =