String str1 = "APPLE"; String str2 = "Apple"; boolean equalsIgnoreCase = StringUtil.equalsIgnoreCase(str1, str2); System.out.println(equalsIgnoreCase); // prints "true"
String str1 = "Python"; String str2 = "Java"; boolean equalsIgnoreCase = StringUtil.equalsIgnoreCase(str1, str2); System.out.println(equalsIgnoreCase); // prints "false"The StringUtil class belongs to the com.liferay.portal.kernel.util package, which is a part of the Liferay Portal platform.