What is the use of .equals and equalsIgnoreCase?

Use equals() in Java to check for equality between two strings . Use equalsIgnoreCase() in Java to check for equality between two strings ignoring the case. String one = “qwerty”; String two = “Qwerty”; Both are equal, but the case is different.

Sizin İçin Seçtik  Merkez Bankası eski para alıyor mu?

Leave a Reply

Your email address will not be published. Required fields are marked *