/**
 * TestList
 * 
 * @author rpj
 * @version 24x08
 */
public class TestList
{
    
    public static void main(String[] args) 
    {
        CircularList <String> cl = new CircularList <String> ();
        int i;
        // make a circular list of the commandline args
        for (String s : args) cl.add(s);

        // go around the circular list 3 times, printing the data at each node
        for (i=0; i < args.length*3; i++) {
            System.out.println(cl.peek());
            cl.rotate();
        }
    }
}