Multidimensional arrays syntax

Multidimensional arrays are created by specifying two or more pairs of square brackets in the declaration. Multi-dimensional arrays are created as arrays of arrays. The initialization takes place in the same way as one-dimensional arrays by specifying the number of elements per dimension. Multi-dimensional arrays can be accessed by specifying all required indices, each in their own square brackets. Even with multi-dimensional arrays, a literal initialization can be achieved by nesting the initialization sequences.

type[][] name = new type[2][4];
type[][] name = {{0, 1}, {0, 1, 2, 3}, {0, 1, 2, 3, 4}};