fork(2) download
  1. class Example {
  2. public static void main(String[] args) {
  3. byte b = (byte) 0b1010_1010;
  4.  
  5. int i = (b << 8) | b;
  6. System.out.println(Integer.toBinaryString(i));
  7. }
  8. }
Success #stdin #stdout 0.09s 27700KB
stdin
Standard input is empty
stdout
11111111111111111111111110101010