Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java equals ignore case

String str1 = "Some text";
String str2 = "some Text";
// Case sensitive comparison accounts for case of letters	
System.out.println(str1.equals(str2)); // false
// Case insensitive comparison through equalsIgnoreCase
System.out.println(str1.equalsIgnoreCase(str2)); // true
Comment

equals ignore case java

String s1 = "test";
String s2 = "TEST";

Boolean isEqual = s1.equalsIgnoreCase(s2);
Comment

PREVIOUS NEXT
Code Example
Java :: fixed length array powershell PSv5+ 
Java :: is java compiled or interpreted 
Java :: convert java to c# 
Java :: java base64 to file 
Java :: run java from terminal 
Java :: how to change java version in pom.xml 
Java :: What is the way to use profiles to configure the environment-specific configuration with Spring Boot? 
Java :: java php object 
Java :: Java printf() Method 
Java :: string to int error 
Java :: button getsource 
Java :: java.lang.NullPointerException 
Java :: java append to file 
Java :: print 1 to 10 using thread in java 
Java :: java how to print out a string in uppercase 
Java :: actuator spring boot 
Java :: concurrenthashmap in java 
Java :: split with multiple condition in java 
Java :: initialize hashmap java 
Java :: insert data from database sqlite android 
Java :: java print method 
Java :: lauch java batch 
Java :: spring security logging 
Java :: java get substring 
Java :: how to check number of messages in kafka topic 
Java :: intelilj javadoc: error - Malformed locale name: UTF8 
Java :: how to change resource color to int color in android 
Java :: like in cypher query 
Java :: leer XML java 
Java :: dowload htpasswd file java 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =