is there a way i can identify a non alphabetic characters like(., ? : ; ' " ! ) and numbers also
boolean checkChar = false; for (int i=0;i<word.length();++i) { if (Character.isLetterOrDigit(word.charAt(i))) { checkChar=true; break;