很有意思的一种两个数交换的方法 1 int i = 26; 2 int j = 47; 3 i = i ^ j; 4 j = i ^ j; 5 i = i ^ j; 6 System.out.println(i); 7 System.out.println(j); 8 }