已采纳回答 / AAnonymous
^ 异或运算 在数字逻辑运算中,异或运算可以分解为 a^b = (~a & b) | (a & ~b)简单的记法可以记为,相同为0(假),不同为1(真)异或运算和 || 完全是两回事我觉得你是不是想问 | 和 |||| 逻辑运算 或,左右两边是表达式,其值只有True和False,只有两边都是False时运算结果才是False,否则就是True。并且当左边表达式为True时,就直接得到True的结果,右边表达式不会计算了(如果是需要计算的表达式的话)| 位运算 或,左右两边的值,按照其二进...
2015-08-22
已采纳回答 / yes居然被占用
int one = 10; int two = 20; int three = 0; three = one + two; 20+10 System.out.println("three = one + two ==>"+three); three = 30; three += one; 30+10 System.out.println("three = one + two ==>...
2015-08-22
最赞回答 / 糖菲果
public class Test { public static void main(String[] args){ int sum = 0; for (int i = 0; i & =50; i++) { if(i%2==0){//判断是不是偶数 ...
2015-08-22