Published
- 1 min read
java check string contains uppercase character
The solution for this is noted below
java check string contains uppercase character
Solution
public boolean containsUpperCaseLetter(String s){
for(int i=0;i<s.length();i++){
if(Character.isUpperCase(s.charAt(i))){
return true;
}
}
return false;
}
Try other methods by searching on the site. That is if this doesn’t work