I\'m trying to use the char method isLetter(), which is supposed to return boolean value corresponding to whether the character is a letter. But when I call the
isLetter()
If Character.isLetter(ch) looks a bit wordy/ugly you can use a static import.
Character.isLetter(ch)
import static java.lang.Character.*; if(isLetter(ch)) { } else if(isDigit(ch)) { }