![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算机基础知识
in-open-eye
to be eye-openner
展开
-
原码、反码、补码、移码 终于搞懂了
原码、反码、补码、移码 终于搞懂了原创 2022-05-22 18:22:32 · 1154 阅读 · 0 评论 -
计算机基础知识杂记 2020-08-21
计算机基础知识杂记 1、位移 转换为二进制,右移、右移 右移1位相当于除以2一次,左移1位相当于乘以2一次。 public void testBitMove() { int i = 1; System.out.println("i = " + i); System.out.println(i >> 1); // 0 System.out.println(i << 1); // 2 i = 2; System.out.println("i原创 2020-08-21 09:07:51 · 126 阅读 · 0 评论