fork download
  1. class BitPuzzle {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. int mask= 0x000F;
  6.  
  7. int value = 0x2222; System.out.println(value & mask);
  8. }
  9. }
Success #stdin #stdout 0.08s 54664KB
stdin
Standard input is empty
stdout
2