fork(1) download
  1. class Example
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. long x = 0x1000000020000000l;
  6. long result = ((x & 0xFFFFFFFF00000000l) >> 32) | ((x & 0x00000000FFFFFFFFl) << 32);
  7. System.out.printf("0x%016X\n", x);
  8. System.out.printf("0x%016X\n", result);
  9. }
  10. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
0x1000000020000000
0x2000000010000000