SyntaxFix
Write A Post
Hire A Developer
Questions
I guess ch is a declared as char. Since char is a primitive data type and not and object, you can't call any methof from it. You should use Character.isLetter(ch).
ch
char
Character.isLetter(ch)