class OperateTest { public static void main(String[] args) { a = a ^ b; //a = 3 ^ 5; b = a ^ b; //b = (3^5)^5; b = 3; a = a ^ b; //a = (3^5)^3; a = 5; <span style="white-space:pre"> </span>System.out.println("a="+a+",b="+b); } }