Project: Character Types
We can group characters in the Unicode character set by attributes that the characters have. Is it a letter? Is it a whitespace character? Is it a control character? Write a program that defines a string of interesting characters. Then iterate on that string, character by character, printing out the character and its attributes using the character typing functions.
Output
$ javac -Xlint CharacterTypes.java
CharacterTypes.java:14: error: incompatible types: String cannot be converted to int
final String c = String.valueOf(Character.toChars(cp));
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error