当前位置:网站首页>无符号右移
无符号右移
2022-07-29 05:24:00 【a568353087】
public static void main(String[] args) {
System.out.println("java 右移");
// Integer a = -5;
Integer a = 5377;
System.out.println(Integer.toBinaryString(a));
System.out.println(Integer.toBinaryString(a >> 2)); // 有符号右移
System.out.println(Integer.toBinaryString(a >>> 2));
}
java 右移
1010100000001
10101000000
10101000000
参考 https://blog.csdn.net/u014110320/article/details/83037130
边栏推荐
猜你喜欢

HAL库学习笔记-13 I2C和SPI的应用

【软件工程之美 - 专栏笔记】21 | 架构设计:普通程序员也能实现复杂系统?

【软件工程之美 - 专栏笔记】“一问一答”第3期 | 18个软件开发常见问题解决策略

Am model in NLP field

STM32 检测信号频率

Huawei cloud 14 day Hongmeng device development -day3 kernel development

DP1332E多协议高度集成非接触式读写芯片

2022 spring recruit - Hesai technology FPGA technology post (one or two sides, collected from: Digital IC workers and FPGA Explorers)

Hal library learning notes-14 ADC and DAC

【软件工程之美 - 专栏笔记】30 | 用好源代码管理工具,让你的协作更高效
随机推荐
【软件工程之美 - 专栏笔记】25 | 有哪些方法可以提高开发效率?
Hal library learning notes-11 I2C
基于51单片机的直流电机调速系统(L298的使用)
华为云14天鸿蒙设备开发-Day1环境搭建
基于STM32:情侣互动玩偶(设计方案+源码+3D图纸+AD电路)
传统模型预测控制轨迹跟踪——圆形轨迹(功能包已经更新)
STM32 printf问题总结 semihosting microLIB理解
智能货架安全监测系统
STM32: mcnamu wheel tracking task (library function program code)
2022 spring recruit - Hesai technology FPGA technology post (one or two sides, collected from: Digital IC workers and FPGA Explorers)
QT learning notes QT model/view
基于AD9850的多功能信号发生器
物联网倾斜监测解决方案
Reading papers on false news detection (5): a semi supervised learning method for fake news detection in social media
NRF52832-QFAA 蓝牙无线芯片
QT学习笔记-QtSQL
Pytorch Basics (Introductory)
【软件工程之美 - 专栏笔记】“一问一答”第2期 | 30个软件开发常见问题解决策略
DP1332E多协议高度集成非接触式读写芯片
AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘