import java.util.*;

/**
 * Circle class
 *
 * @author		Unknown, edited by: Jake Carey
 * @version		1.0, September 17, 2008
 */

public class Circle
{
  private double radius;
  
  /**
 	* The explicit value constructor for Circle
	*
 	* @param radius		the radius of the circle
 	*/
  public Circle  (double r)
  {
    radius = r;
  }//end Circle constructor
  
  /**
	* Calculates the area of a circle
 	*
 	* @return		the area of the circle
 	*/
  public double getArea()
  { 
    return Math.PI * radius * radius;  
  }//end getArea
  
  /**
	* Gets the radius of the circle.
 	*
 	* @return	the radius of the circle
 	*/
  public double getRadius()
  {
     return radius;
  }//end getRadius
  
  /**
	* Determines whether the called circle
	* equals the calling circle.
 	*
	* @param circle	The circle being compared to
 	* @return			True if they are equal, false
	*						if they are not.
 	*/
	public boolean equals(Circle circle)
	{
		boolean isEqual;
		
		isEqual = false;
		
		if (circle.radius == this.radius)
			isEqual = true;
		
		/*if ((circle.getArea() == this.getArea())
			  && (circle.getRadius() == this.getRadius()))
		{
			isEqual = true;
		}*/
		return isEqual;
	}
	
	/**
	* Determines whether the called circle
	* has an area greater than the calling 
	* circle
 	*
	* @param circle		The circle being compared to
 	* @return				True if the called circle has
	*							a radius bigger than the calling
	*							circle
 	*/
	public boolean greaterThan(Circle circle)
	{
		boolean isGreater;
		
		isGreater = false;
		
		if (circle.getArea() > this.getArea())
			isGreater = true;
		
		return isGreater;
	}
	
	/**
	* Determines whether the called circle
	* has an area greater than the calling 
	* circle
 	*
 	* @return	The formatted string
 	*/
	public String toString()
	{
		String string;
		
		string = "Radius: " + this.getRadius() + "\n" +
					"Area  : " + this.getArea()   + "\n";
		
		return string;
	}
 }//end Circle class