fork(1) download
  1. class Example {
  2. public static void main(String[] args) {
  3. int code = 0x1F604;
  4.  
  5. System.out.println(Integer.toHexString(Character.highSurrogate(code)));
  6. System.out.println(Integer.toHexString(Character.lowSurrogate(code)));
  7.  
  8. int \ud83d\ude04;
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0.1s 320256KB
stdin
Standard input is empty
compilation info
Main.java:8: error: illegal character: '\ude04'
        int \ud83d\ude04;
                 ^
Main.java:8: error: not a statement
        int \ud83d\ude04;
        ^
2 errors
stdout
Standard output is empty