|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCircle
public class Circle
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. |
static double |
intPow(double base,
int exp)
Calculates (base^exp), where exp is a nonnegative integer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double PI
Method Detail |
---|
public static double circum(double radius)
radius
- Radius of the circle.
public static double intPow(double base, int exp)
base
- Value of the base.exp
- Value of the exponent. Must be a nonnegative integer.
public static double area(double radius)
radius
- Radius of the circle.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |