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
String s = "BC+D*E-=";
for (int i = 0; i < s.length(); i++) {
char charAt2 = s.charAt(i);
if (Character.isLetter(charAt2)) {
System.out.println(charAt2 + "is a alphabet");
}
}