作者: 123 时间: 2013-3-26 18:03
class Demo0 {
public static void main(String[] args) {
int a =3,b =5;
b = a ^ b ^ b;
a = a ^ b ^ a;
System.out.println("a="+a+",b="+b);
}
}
把3后面的分号改成逗号,输出语句是out,不是put。现在就可以正常运行了作者: 郑晓飞 时间: 2013-3-26 18:06
王维帝 发表于 2013-3-26 18:03
class Demo0 {
public static void main(String[] args) {
int a =3,b =5;
呃。。。真的是自己蒙了。。谢谢 我试下作者: 郑晓飞 时间: 2013-3-26 18:06
王维帝 发表于 2013-3-26 18:03
class Demo0 {
public static void main(String[] args) {
int a =3,b =5;