Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

java check string contains uppercase character

yourString.chars().anyMatch(Character::isUpperCase)
Comment

PREVIOUS NEXT
Code Example
Java :: No suitable driver found for jdbc:mysql 
Java :: delet file from path android 
Java :: room library android 
Java :: spring-boot java header appliacation/json constant 
Java :: check if user has internet connection in kotlin 
Java :: hashmap sort ascending 
Java :: java how to create an array 
Java :: import android.support.v7.app.alertdialog androidx 
Java :: android java textview weight programmatically 
Java :: how to add a listener to a toggle group radio buttons javafx 
Java :: Java Regex : 4 Letters followed by 2 Integers 
Java :: File Appender log4j2.properties spring 
Java :: java throws keyword 
Java :: get executable path java 
Java :: convert class to java command line 
Java :: java 8 stream option 
Java :: add int to list java 
Java :: prime numbers program in java 
Java :: remove all element in a list java 
Java :: Java Converting double into an int 
Java :: stringbuilder java 
Java :: java checked exception 
Java :: call function after specific time java android 
Java :: fragment view in XML android 
Java :: max int array java 
Java :: overload and override in java 
Java :: linked list vs array list 
Java :: dont kill service in android studio 
Java :: variables in java 
Java :: module java.base does not "opens java.io" to unnamed module 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =