import java.util.Scanner;
public class ClassOne {
/**
* @param args
*/
//使用异或运算交换变量值
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
System.out.println("请输入变量A的值:");
long a = scan.nextLong();
System.out.println("请输入B的值:");
long b = scan.nextLong();
System.out.println("a=" + a + ";b=" + b);
a=a^b;
b=a^b;
a=a^b;
System.out.println("互换之后:a=" + a + ";b=" + b);
}
}