Class Circle

java.lang.Object
  extended by Circle

public class Circle
extends java.lang.Object


Field Summary
static double PI
          Contains the value of pi to four decimal places.
 
Method Summary
static double area(double radius)
          Calculates the area of a circle with the given radius.
static double circum(double radius)
          Calculates the circumference of a circle with the given radius.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

public static final double PI
Contains the value of pi to four decimal places.

See Also:
Constant Field Values
Method Detail

area

public static double area(double radius)
Calculates the area of a circle with the given radius.

Parameters:
radius - Radius of the circle.
Returns:
Area of the circle.

circum

public static double circum(double radius)
Calculates the circumference of a circle with the given radius.

Parameters:
radius - Radius of the circle.
Returns:
Circumference of the circle.