import java.util.Scanner;
/*
 *CircleTester is a single main method program for
 *Excercising different components in the lab
 *@author Daniel Heck heckds@jmu.edu
 *@version 1.0 9/17/08
 */
public class CircleTester
{
	public static void main(String[] args)
	{
		Circle myFirstCircle;	//create a circle object
		Circle mySecondCircle;	//create a 2nd circle object
		Scanner keyboard;			//make a scanner for input
		int	firstRadius;		//make a int 1st radius to send to circle
		int 	secondRadius;		//make a int 2nd radius to send to circle
		
		System.out.println("Welcome to CircleTester.");//welcome user 
		keyboard = new Scanner(System.in); //Initialize the scanner object
		
		System.out.println
		("Please insert choice radius 1.");//ask for radius 1
		firstRadius = keyboard.nextInt();//take input set it as 1stradius
		//welcome user ask for input
		
		System.out.println
		("Please insert choice radius 2.");//ask for radius 2
		secondRadius = keyboard.nextInt(); //take input set it as 2ndradius
		
		//Create a new circle sending it the 1st inputed radius
		myFirstCircle = new Circle(firstRadius);
		//call the toString method printing current values of circle1
		System.out.println(myFirstCircle.toString());
		//create a new circle sendint it the 2nd inputed radius
		mySecondCircle = new Circle(secondRadius);
		//call the toString method printing current values of circle2
		System.out.println(mySecondCircle.toString());
		
		//If the first circle = the 2nd circle output that it is so
		if(myFirstCircle.equals(mySecondCircle))
			System.out.println("The two objects are equal");
		//Else output that they are not equal
		else
			System.out.println("The two objects are not equal");
		
		//If the 1st circle is > than the 2nd circle output that is so
		if(myFirstCircle.greaterThan(mySecondCircle))
			System.out.println("The 1st circle is greater");
		//Else output that the 2nd is greater than the 1st
		else
			System.out.println("The 2nd circle is greater");
			
		
	}//end main
}//end class