UNB/ CS/ David Bremner/ teaching/ java/ TwoDArray.java
public class TwoDArray{

    public static void main(String [] args){
        int [][]grid;

        grid=new int[10][];

        for (int i=0; i<10; i++)
            grid[i]=new int[i+1];

        for (int i=0; i<10; i++)
            ArrayUtil.print(grid[i]);
        
        grid=new int[10][10]; //Oops. throw the other stuff away
        for (int i=0; i<10; i++)
            ArrayUtil.print(grid[i]);

    }
}
//