@调换a与b的值
在这里插入代码片
public class Demo2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 10;
int b = 20;
int c = 0;
c=a;
a=b;
b=c;
System.out.println(a);
System.out.println(b);
}
}