DRAFT
ArrayElementTypeRepeats
Incorrect
The type of a multi-dimensional array is written as T[] T[] T[]
Correct
The type of a multi-dimensional array is written as T[][][]
CorrectionHere is what's right.
Here is what's right.
The innermost element type is written only once.
For example:
int[][]
means an array of arrays of ints.
new double[3][2][1]
allocates a three-dimensional array of doubles
(or, more precisely, an array of arrays of arrays of doubles).
Language
Java