{"id":123,"title":"java\u4e2d\u53d8\u91cf\u503c\u4ea4\u6362\u7684\u65b9\u6cd5","good":0,"bad":0,"hit":2642,"created_at":"2014-12-03 17:10:54","content":"
public class Test2_22 {
\/*
* \u4ea4\u6362\u53d8\u91cf\u7684\u65b9\u6cd5
*\/
public static void main(String args[]){
int a=3;
int b=2;
\/\/\u65b9\u6cd51\uff1a\u5b9a\u4e49\u4e00\u4e2a\u4e2d\u95f4\u53d8\u91cf
int temp=0;
temp=a;
a=b;
b=temp;
System.out.println(a+"-"+b);
\/\/\u65b9\u6cd52\uff1a\u4e0d\u7528\u4e2d\u95f4\u53d8\u91cf\uff0c\u5148\u5c06\u4e24\u6570\u7684\u548c\u5b58\u5728\u4e00\u4e2a\u53d8\u91cf\u4e2d
int c=3;
int d=4;
c=c+d;
d=c-d;\/\/d=(c+d)-d=c
c=c-d;\/\/c=(c+d)-d=(c+d)-c=d
System.out.println(c+"-"+d);
}
}
<\/p>"}