// Programme to test the Circle class
// Author Chris IOAKIM

import java.io.*;


public class TestCircle
{
	public static void main (String args[]) throws IOException
	{
		double r;
		int def;
		String s;
		String answer;
		
		// set up the bufferReader
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		System.out.flush();
		do
		{
			System.out.println("Please enter the side of radius of the circle");
			s = in.readLine(); // read the users input in
	
			Double l=Double.valueOf(s); //converts the string into a double	
			r=l.doubleValue();
			Circle c1 = new Circle(r); // intialises a new object of circle
			System.out.println("The area of the circle with radius = " + r + " has area " + c1.getCircleArea());
		
			System.out.println("Please enter Y to continue or anything else to continue");
			System.out.flush();
			answer=in.readLine();
		}while (answer.equalsIgnoreCase("Y"));
	}// ends the main
} // ends the class			
	   	
		
		