how to check char is uppercase in java code example
Example 1: how to make a char uppercase in java
char q = Character.toUpperCase('d');
Example 2: java check string contains uppercase character
public boolean containsUpperCaseLetter(String s){
for(int i=0;i<s.length();i++){
if(Character.isUpperCase(s.charAt(i))){
return true;
}
}
return false;
}