Проверьте, находится ли Char в char ray java
if (new String(charArray).indexOf('q') < 0) {
break;
}
abdullah
if (new String(charArray).indexOf('q') < 0) {
break;
}
Character.isDigit(string.charAt(index)) //(JavaDoc) will return true if it's a digit
Character.isLetter(string.charAt(index)) //(JavaDoc) will return true if it's a letter