我的JAVA运算符简记录
“&” 双1为1 (长的像8(爸),一副严格的样子,必须两个1才是1)
int a = 13;
int b = 23;
int c = a & b;
System.out.println(a + " " + Integer.toBinaryString(a));
System.out.println(b + " " + Integer.toBinaryString(b));
System.out.println(c + " " + Integer.toBinaryString(c));
.
原创
2020-08-09 02:49:33 ·
137 阅读 ·
0 评论