Checking Character Properties (The Java™ Tutorials > Internationalization > Working with Text)
The Character.getType method returns the Unicode category of a character. Each category corresponds to a constant defined in the Character class. For instance, getType returns the Character.UPPERCASE_LETTER constant for the character A. For a complete list of the category constants returned by getType, see the Character API documentation. The following example shows how to use getType and the Character category constants. All of the expressions in these if statements are true:
Read full article from Checking Character Properties (The Java™ Tutorials > Internationalization > Working with Text)
No comments:
Post a Comment