


import java.io.*;

class TwoDimArray {
	final static int ROWS = 20;
	final static int COLS = 10;

	public static void main(String[] args) throws IOException {
		// declare a reference to an array of array of int
		int[][] n;

		// create an array of references to an array of int
		n = new int[ROWS][];

		// create ROW array of int
		for(int i = 0; i < n.length; i++) {
			n[i] = new int[COLS];
		}

		// now that we have a two dimensional array
		// assign some values to the array
		for(int i = 0; i < n.length; i++) {
			for(int j = 0; j < n[i].length; j++) {
				n[i][j] = (i+1)*(j+1);
			}
		}

		// print out the results to see if all went okay
		for(int i = 0; i < n.length; i++) {
			for(int j = 0; j < n[i].length; j++) {
				System.out.print(n[i][j] + "\t");
			}
			System.out.println("");
		}
	}
}


