
/**
 * Write a description of class ParameterExamples here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class ParameterExamples
{

    // method to calculate volume of a sphere
    // notice how it takes in a parameter, radius,
    // and passes that parameter as an argument
    // to the Math.pow method
    public static double volumeOfSphere(double radius)
    {   double result = 4.0 / 3.0 * Math.PI 
            * Math.pow(radius, 3);
         return result;
    }
    
    // try calling with an argument named x and
    // predict, observe what happens
    public static void foo(int x)
    {   System.out.println(x);
        x += x; // x in foo??
        x += x; 
        System.out.println(x + " 12?");
    }
    
    public static void printC(int row, int col)
    {   for(int i = 1; i <= row; i++){
            for(int j = 1; j <= col; j++)
                System.out.print("C");
            System.out.println();
        }
    }

    public static void main(String[] args)
    {
    }
}
