/* Author: Diana Palsetia
 * Date: 1/26/09
 * Description: A Sample Java program 
 */

public class Circle{                       // Everything in Java is a class
    public static void main(String[] args) { // All programs must have main() to work independently 
        
      final double PI = 3.14; //constant of type double
      
      //declare and intialize variables
      double radius = 3;  
      double area = radius * radius * PI;
      double circum = 2 * PI * radius; //RHS 2*PI*radius is an expression that evaluates to double value 
                                       //and is assigned to variable of type double
      
      //print the results
      System.out.println("Area=" + area);
      System.out.println("Circumference=" + circum);
    }// This marks the end of main()
}// Marks the end of the Circle class

