int a = 100; int b = 5; a ^= b; b ^= a; a ^= b; System.out.println("a :" + a); System.out.println("b :" + b);