Java tutorial
public class Main { public static void main(String[] args) { int cp1 = 0x008f, cp2 = 0x0123; System.out.println(Character.highSurrogate(cp1)); System.out.println(Character.highSurrogate(cp2)); } }