import java.util.*;

public class TestV2
{
    public static void main (String [] args)
    {
        RectangularArrayV2 array;
        Object element;

        array = new RectangularArrayV2(3, 4);
        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");
        }
    
    }
}
