Recall that a matched pair of brackets after a data type means:
...could be thought of as an array of integer arrays, as if it were written as (note that this is not legal syntax):
In Java, a two-dimensional array is actually a single array of array reference variables, each of which points to a single dimensional array.
To extend the example above:
int nums = new int;
This is an array of 3 elements, each of which is an array of 6 int elements as shown in the diagram below:
Note that it is possible to replace any of the one-dimensional elements with a different one, or that the second-dimension arrays each have a different length - the following line would replace one of the arrays with another of a different length
nums = new int;