Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bits {
- public static void main(String[] args) {
- byte b = (byte)(1 << 7) + (byte)(1 << 6);
- System.out.println(b);
- int i = b & 0xff;
- System.out.println(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement