CompareTo and Compare(String, String) methods. They all perform a case-sensitive comparison .
Read moreHow do you do case-insensitive string comparison?
Comparing strings in a case insensitive manner means to compare them without taking care of the uppercase and lowercase letters. To perform this operation the most preferred method is to use either toUpperCase() or toLowerCase() function . toUpperCase() function: The str.
Read more