Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
 
PREVIOUS NEXT
Tagged: #java #equals #ignore #case
ADD COMMENT
Topic
Name
2+1 =