Answers for "string is uppercase java"

1

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;
}
Posted by: Guest on April-04-2021
1

java check string contains uppercase character

yourString.chars().anyMatch(Character::isUpperCase)
Posted by: Guest on April-04-2021
0

uppercase string java

String var_name = "Jerry";
System.out.println(var_name.toUpperCase()); //JERRY
Posted by: Guest on August-26-2021

Code answers related to "string is uppercase java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language