int x = 1; int y = 2; int z = x; x = y; y = z; System.out.println("x="+x); System.out.println("y="+y);