/**
 * Demonstrates Pass By Value with a primitive type.
 * Trace through the code and understand the output
 * @author CSCI209
 */
public class ParameterPassingDemo2 {
    
    public static void main(String[] args) {
        int x = 27;
        System.out.println(x);
        doubleValue(x);
        System.out.println(x);
    }
    
    /**
     * p copies the value passed into the method
     */
    public static void doubleValue(int p) {
        p = p * 2;
    }
}
