Java String compareToIgnoreCase() Method
Java String compareToIgnoreCase()
compareToIgnoreCase() method compares the characters of two strings.
The characters of the strings may be in lower case or upper case, this method doesn't discriminates between them, i.e, Both 'A' and 'a' are equal.
compareToIgnoreCase() method starts comparison character by character starting from the first character until the characters in both strings are equal or a NULL character is encountered.
|Specifies a string to be compared.
This function returns the numeric difference between the Unicode values of non-matching characters.
|If str1 is greater than str2
|If str1 is equal to str2
|If str1 is less than str2
Hi Developers, we almost covered 90% of String functions and Interview Question on Java with examples for quick and easy learning.
We are working to cover every Single Concept in Java.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.