标签:java
class TestExer1 { public static void main(String[] args) { int m =12; int n=5; System.out.println("m:"+m+"n:"+n); //int temp=m; // m=n; // n=temp; //System.out.println("m:"+m+ "n:"+n); //m=m+n; //n=m-n; //m=m-n; //System.out.println("m:"+m+ "n:"+n); m=m^n; n=m^n; m=m^n; System.out.println("m:"+m+ "n:"+n); } }
标签:java
原文地址:http://9815936.blog.51cto.com/9805936/1600065