// this program creates two Circles and two Rectangles and compares the
// corresponding object by radius and area, respectively

public class TestShapes3
{
  public static void main(String[] args)
  {
     Circ3 circ1 = new Circ3(1, 1, 2);
     Circ3 circ2 = new Circ3(3, 8, 5);
     if (circ1.compareTo(circ2) < 0)
       System.out.println("circ1 < circ2");
     else if (circ1.compareTo(circ2) > 0) 
       System.out.println("circ1 > circ2");
     else
       System.out.println("circ1 = circ2");

     Rect3 rect1 = new Rect3(0, 0, 7, 2);
     Rect3 rect2 = new Rect3(0, 0, 3, 4);
     if (rect1.compareTo(rect2) < 0)
       System.out.println("rect1 < rect2");
     else if (rect1.compareTo(rect2) > 0)
       System.out.println("rect1 > rect2");
     else
       System.out.println("rect1 = rect2");
  }
}
