fork download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. char[] poo = Character.toChars(0x1f4a9);
  9. String x = new String(new char[]{poo[0], poo[1], '2'});
  10. String y = x + "foo" + x;
  11. for(int i = 0; i < y.length(); ++i) {
  12. int u = Character.codePointAt(y, i);
  13. System.out.printf("%h\n", u);
  14. if(u > Character.MAX_VALUE) ++i;
  15. }
  16. }
  17. }
Success #stdin #stdout 0.06s 215552KB
stdin
Standard input is empty
stdout
1f4a9
32
66
6f
6f
1f4a9
32