// A multidimentional array example. // Creates and prints two-dimentional array table. class Multi_Array { int[][] table = {{1, 2, 3, 4}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5, 6}, {1, 2, 3, 4, 5, 6, 7}}; public void print () { for (int row = 0; row < table.length; row++) { for (int column = 0; column < table[row].length; column++) System.out.print (table[row][column] + " "); System.out.println(); } } } class Array5 { public static void main (String[] args) { Multi_Array chart = new Multi_Array(); chart.print(); } }