import java.util.*;

public class TestV3
{
    public static void main (String [] args)
    {
        RectangularArrayV3 array;
        Object element;

        array = new RectangularArrayV3(3, 4);

	// set a couple of random ones just to test constructor
	array.setElementAt(2, 3, new GregorianCalendar(2009, 4, 22, 2, 3)); 
	System.out.println(array.toString());
		
        for (int rr = 0; rr < 3; rr++) 
            for (int cc = 0; cc < 4; cc++) 
                array.setElementAt(rr, cc, new GregorianCalendar(2009, 3, 22, rr, cc));
				

        for (int rr=0; rr < 3; rr++) 
        {
            for (int cc = 0; cc < 4; cc++) 
            {
                element = array.getElementAt(rr, cc);
                System.out.printf("%d,%d:%tc ", rr, cc, (GregorianCalendar)element);
            }
            System.out.printf("\n");
        }
    
    }
}
