Java tutorial
public class Main { public static void main(String[] args) { System.out.println("A valid Unicode surrogate pair: " + Character.isSurrogatePair('\ud800', '\udc00')); } }