int[][] array2D = { {1,2,3,4,5,6}, {7,8,9,10} }; int length = array2d[0].length + array2d[1].length; // 10