class TestClass { 
public void method1 (int[] a, int[] b) 
 { 
 a = b; 
 a[0] = 10; 
 System.out.println("a[0] = " + a[0]); 
 System.out.println("b[0] = " + b[0]); 
 } 
 
 public void method2 (int x, int y) 
 { 
 x = y; 
 x = 4; 
 System.out.println("x = " + x); 
 System.out.println("y = " + y); 
 } 
 
 public static void main(String [] args) 
 { 
 TestClass test = new TestClass(); 
 int x = 2; int y = 3; 
 int[] a = new int[] {5,6,5,6}; 
 int[] b = new int[] {1,8,1,8}; 
 
 test.method1(a, b); 
 test.method2(x, y); 
 
 System.out.println("x = "+x+"; y = "+y+"; a[0] = "+a[0]); 
 } 
 } 