Java does not have multi-dimensional (2D, 3D) arrays, it only has arrays of references. Those references can be references to other arrays, so you can build up arbitrarily-nested arrays-of-arrays,...