//File:	ParameterPassing.java
public class ParameterPassing
{
	static void change (int [] a,  	//a reference (-->)parameter
			    int b	//a value parameter
			   )
	{
		//a --> x[0] x[1] x[2] in main()
		//b = 2 has its own memory location
		// 	and is initialized to have
		//	the value currently residing in y
		
		a[0] =1;	//changes x[0] from 10 to 1
		b=3;		//does NOT change y
	}
	
	public static void main (String [] args)
	{
		int [] x = {10, 20, 30};
		int y = 2;
		
		change (x, y);
		
		NumberList.display(x);	//displays the list on the screen
		System.out.println (y);
	}
}