import java.util.*;


/**
*  This is a driver for the Circle class
*
*  @author  Glenn Young
*  @version 1.0  Date: 17 September 2008
*/

public class CircleTester
{
    public static void main(String[] args)
	 {
	     Circle myFirstCircle, mySecondCircle;
		  double radius1, radius2;
		  Scanner keyboard;
		  keyboard = new Scanner(System.in);
		  
		  //Prompt the user and get the radii of the two circles
		  System.out.print("Enter the radius of the first circle: ");
		  radius1 = keyboard.nextDouble();
		  System.out.print("Enter the radius of the second circle:");
		  radius2 = keyboard.nextDouble();
		  
		  //instantiate the two Circles
		  myFirstCircle = new Circle(radius1);
		  mySecondCircle = new Circle(radius2);
		  
		  //creating white space for neatness
		  System.out.println("\n");
		  
		  //call the toString() method from Circle and print results
		  System.out.println(myFirstCircle.toString());
		  System.out.println(mySecondCircle.toString());
		  
		  //determine if the two circles are equal
		  System.out.println("Are the two circles equal?");
		  if(myFirstCircle.equals(mySecondCircle))
		      System.out.println("\tYes.  Yes they are.");
		  else
		      System.out.println("\tNope.");
				
		  //white space for neatness
		  System.out.println();
		  
		  //determine in the second circle is larger than the first
		  System.out.println
		  ("Is the second circle larger than the first?");
		  if(myFirstCircle.greaterThan(mySecondCircle))
		      System.out.println("\tCircle 2 is larger.");
		  else
		      System.out.println("\tCircle 2 is not larger.");
	 }//end main()
}//end CircleTester