/**
 * A simple test of mutable objects.
 */
import java.io.PrintWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * Some experiments to better understand arrays.
 */
public class TestMutation
{
  public static void main(String[] args)
  {
    // Prepare input and screenput.
    BufferedReader keyboard = 
      new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(System.out, true);

    SchemeList sl = new ArrayBasedSchemeList();
    MyVector mv = new MyVector();
    // At this point, both things have no elements.
    out.println("Is sl empty? " + sl.isEmpty());
    out.println("Is mv empty? " + (mv.length() == 0));
    // Add something to each
    sl.addToFront("Hello");
    mv.add("Hello");
    // Check again
    out.println("Is sl empty? " + sl.isEmpty());
    out.println("Is mv empty? " + (mv.length() == 0));

    // That's it, we're done.
    System.exit(0);
  } // main(String[])

} // class TestMutation

