Converts 32-bit Unicode codePoints to 16-bit surrogate pairs for Java String literals. It lets you enter String literals containing unsupported…