fork download
  1. import java.util.*;
  2. import java.util.stream.*;
  3. import java.nio.*;
  4. import java.nio.charset.*;
  5.  
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. System.out.print(
  11. IntStream.of(1214606444, 1865162839, 1869769828, 555753482)
  12. .mapToObj(n -> IntStream.iterate(24, i -> i >= 0, i -> i - 8)
  13. .boxed()
  14. .map(i -> (n & 255 << i) >> i)
  15. .collect(() -> ByteBuffer.allocate(4),
  16. (r, e) -> r.put(e.byteValue()),
  17. ByteBuffer::put))
  18. .map(b -> new String(b.array(), StandardCharsets.UTF_8))
  19. .collect(Collectors.joining())
  20. );
  21. }
  22. }
  23.  
Success #stdin #stdout 0.09s 34436KB
stdin
Standard input is empty
stdout
Hello, World!