“>> “右移,高位补符号位 ,这里右移一位表示除2 “>>> ”无符号右移,高位补0; 与>>类似 “<< “ 左移一位表示乘2,二位就表示4,就是2的n次方
例:
System.out.println("5<<1 = " + (5<<1));
System.out.println("-128>>>1 = " + (-128>>>1));
System.out.println("-128>>1 = " + (-128>>1));
5<<1 = 10 -128>>>1 = 2147483584 -128>>1 = -64