摘要: public void contextLoads() { int a=5; int b=4; a = a^b; b= a^b; a = a^b; System.out.println("a=" +a); System.out.println("b=" +b); } 阅读全文
posted @ 2020-05-21 17:22 Nullpointer_dxy 阅读(209) 评论(0) 推荐(0) 编辑
摘要: & 与 遇0则0 1&1=1 1&0=0 0&1=0 0&0=0 | 或 遇1则1 1&1=1 1&0=1 0&1=1 0&0=0 ~ 1-0 0-1 ^ 异或 (不进位加法) 相同为0,相异为1 比如1+1=0 1+0=1 >>补符号位 符号位为0则补0,符号位为1补1 << 补0 不管怎么样都补 阅读全文
posted @ 2020-05-21 16:32 Nullpointer_dxy 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-21 09:20 Nullpointer_dxy 阅读(132) 评论(0) 推荐(0) 编辑