I have a string \"BC+D*E-\". I want to check each character of the string whether it is an alphabet or not. I tried using isLetter() but it does consider even the = , * and
Break the String into an array and iterate over it.
String word = "BC+D*E-" for (char c : word.toCharArray()) { if(!(Character.isLetter(c)) { System.out.println("Not a character!"); break; } }