import java.io.*;
import java.util.Scanner;

/**
* This class contains a single main method 
* that will be used to exercise each component 
* of the lab 8 and demonstrate that
* I did that step correctly
*
* @author Yanitsa Staleva
* @date: 09/17/08
* section 2 
* Lab 8
*/

public class CircleTester
{
  public static void main(String[] args)
{
Scanner kb = new Scanner(System.in);

Circle mySecondCircle;
Circle myFirstCircle;
double r;

myFirstCircle = new Circle(10);

//calling the toString for the 
//firstCircle
System.out.print(myFirstCircle.toString());
 

System.out.print("\nEnter the radius of the Circle: ");
r = kb.nextDouble();

//The secondCircle is created 
//using the user's input
mySecondCircle = new Circle(r);

System.out.print(mySecondCircle.toString());

// Determine whether the two 
//objects are equal and print the result.

if(mySecondCircle.equals(myFirstCircle))
System.out.println("\nThe two circles are the same!");
else
System.out.println("\nThe two circles are not the same!");

//Determine whether the second object
// is greater than the first object 
//and print the result.

if(mySecondCircle.greaterThan(myFirstCircle))
System.out.println("The second circle is greater than the first!");

else
System.out.println("The first circle is greater than the second!");
}
}