

public class PassByCopy
{
    public static void main(String[] args) 
    {
        int x;
        
        x = 4;      // CHANGES the value in x to 4
        System.out.println(x);
        
        increment(x); // PASS x to method "increment"
        System.out.println(x); // x UNCHANGED !  Why??
    } 
    
    public static void increment(int a )  //  a  and  x  are different variables !!
    {
	a = a + 1;
    }  
}
