1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| public static void main(String[] args) { int a = 3; int b = 4; a=a+b; b=a-b; a=a-b; System.out.println("a="+a+",b="+b);
int aa=3; int bb=4; aa=aa^bb; bb=bb^aa; aa=aa^bb; System.out.println("aa="+aa+",bb="+bb); }
|