Java String equalsIgnoreCase()


The String equalsIgnoreCase() method compares the two given strings on the basis of content of the string irrespective of case of the string. It is like equals() method but doesn't check case. If any character is not matched, it returns false otherwise it returns true


Signature

public boolean equals(Object anotherObject)



Parameter

anotherObject : another object i.e. compared with this string.


Returns

true if characters of both strings are equal otherwise false.


Overrides

equals() method of java Object class.


Java String equals() method example

Flash soon



Copyright 2017 Design& Development