Home > Back-end >  Could you tell me the int I expression operation is what mean?
Could you tell me the int I expression operation is what mean?

Time:04-01

Public static void main (String [] args) {
Byte b1 (byte)=0 x12, b2=0 x34 (byte), b3=(byte) 0 x56, b4=0 x78 (byte);
Int I=(b4 & amp; 0 XFF) & lt; <24 | (b3 & amp; 0 XFF) & lt; <16 | (b2 & amp; 0 XFF) & lt; <8 | (b1 & amp; 0 XFF);
System.out.println(i);
}
Int I=(b4 & amp; 0 XFF) & lt; <24 | (b3 & amp; 0 XFF) & lt; <16 | (b2 & amp; 0 XFF) & lt; <8 | (b1 & amp; 0 XFF);
Have a great god help explain why & amp; O0xff as well as the operation of the |?

CodePudding user response:



https://blog.csdn.net/i6223671/article/details/88924481


https://blog.csdn.net/wangqing84411433/article/details/53713605

The hope can help you

CodePudding user response:

Thank you! Very helpful!
  • Related