a奔腾的心的博客①使用第三个变量来接收 int c = 0; c = a; //c 等于1 a = b; // a 等于2 b = c; // b 等于1 ...b = a - b; // b 等于1 a = a - b; // a 等于2 ③既然是程序员,我们用程序员的方式来做一下,还可以深刻...
不会汪汪的猫咪的博客众所周知,在java中 a = a+b在大多数情况下都是可以替换为 a +=b的,那么这两种写法有什么区别呢? 区别1:public static int test() { System.out.println("aaaa"); return 1; } public static ...
萌萌哒的黄桃的博客When i convert:int B=1;boolean A=B;It gives error: Incompatible types, which is trueBut when I write this code:int C=0;boolean A=C==1;it gives falsewhile if I change value of C to 1 it gives true.I do...