Horje
how to compare strings without capital letters in java easy Code Example
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;
}
capitalize string java
String str = "java";
String cap = str.substring(0, 1).toUpperCase() + str.substring(1);
how to compare strings without capital letters in java easy
import java.lang.String; //contains equalsIgnoreCase()
/*
*
*/
String s1 = "Hello";
String s2 = "hello";

if (s1.equalsIgnoreCase(s2)) {
System.out.println("hai");
} else {
System.out.println("welcome");
}
how to compare strings without capital letters in java easy
public boolean areStringsSame(String str1, String str2)
{
    if (str1 == null && str2 == null)
        return true;
    if (str1 == null || str2 == null)
        return false;

    return str1.equalsIgnoreCase(str2);
}




Java

Related
spring boot send api request Code Example spring boot send api request Code Example
first none duplicated char Code Example first none duplicated char Code Example
android volley benefits Code Example android volley benefits Code Example
clear method does not work selenium java Code Example clear method does not work selenium java Code Example
create and populate list one line java Code Example create and populate list one line java Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9