A 2-dimensional array of ints with 4 rows, has been created and assigned to a2d. Write an expression whose value is the total number of ints that could be stored in the entire array.

LANGUAGE: JAVA

CHALLENGE:

A 2-dimensional array of ints with 4 rows, has been created and assigned to a2d. Write an expression whose value is the total number of ints that could be stored in the entire array.

SOLUTION:

a2d[0].length +a2d[1].length + a2d[2].length + a2d[3].length