SyntaxFix
Write A Post
Hire A Developer
Questions
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)) { }