Specifications
Sun Services
Java™ Programming Language
Module 5, slide 11 of 15
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Multidimensional Arrays
• Non-rectangular arrays of arrays:
twoDim[0] = new int[2];
twoDim[1] = new int[4];
twoDim[2] = new int[6];
twoDim[3] = new int[8];
• Array of four arrays of five integers each:
int[][] twoDim = new int[4][5];










