You can create arrays of any dimension you want (within reason) by using the proper number of square brackets in the array creation expression. For instance, to declare a 3-D integer array you might type int myArray[][][] = new int[3][4][5]; A 3-D array is treated as an array of 2-D arrays, a 4-D array is treated as an array of 3-D arrays, and so on. |