Java tutorial
public class Main { public static void main(String[] args) { String s = String.format("\\u%04x", (int) Character.MAX_LOW_SURROGATE); System.out.println(s); } }