UNB/ CS/ David Bremner/ teaching/ java/ Square.java
import ccj.*;

public class Square extends GraphicsApplet
{  public void run()
   {  Point p1 = new Point(1, 3);
      Point p2 = (Point)p1.clone();
      Point p3 = (Point)p1.clone();
      Point p4 = (Point)p1.clone();
      p2.move(0, 1);
      p4.move(1, 0);
      Line l1 = new Line(p1, p2);
      Line l2 = new Line(p3, p4);
      l1.draw();
      l2.draw();
      l1.move(1, 0);
      l2.move(0, 1);
      l1.draw();
      l2.draw();
   }
}