Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;
}
 
PREVIOUS NEXT
Tagged: #java #check #string #uppercase #character
ADD COMMENT
Topic
Name
7+5 =