Introduction
In this lab, you will learn how to use the isSurrogate()
method of the Character
class in Java. This method is used to check whether a given character is a Unicode surrogate code unit or not. The isSurrogate()
method is a static method, which means that it can be called directly on the Character
class without creating an instance of the class.