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
String s1 = "test";
String s2 = "TEST";
Boolean isEqual = s1.equalsIgnoreCase(s2);