// A multidimentional array example -- an // alternative declaration class Multi_Array2 { int[] row0 = new int[4]; int[] row1 = new int[5]; int[] row2 = new int[3]; int[] row3 = new int[6]; int[][] table = {row0, row1, row2, row3}; public Multi_Array2 () { row0[0] = 1; row0[1] = 2; row0[2] = 3; row0[3] = 4; row1[0] = 5; row1[1] = 4; row1[2] = 3; row1[3] = 2; row1[4] = 1; } public void print () { for (int column = 0; column < row0.length; column++) System.out.print (row0[column] + " "); System.out.println(); for (int column = 0; column < row1.length; column++) System.out.print (row1[column] + " "); System.out.println(); for (int column = 0; column < row2.length; column++) System.out.print (row2[column] + " "); System.out.println(); for (int column = 0; column < row3.length; column++) System.out.print (row3[column] + " "); System.out.println(); } } class Array7 { public static void main (String[] args) { Multi_Array chart = new Multi_Array(); chart.print(); } }