How do you equal a string in Java?

Using String. equals() :In Java, string equals() method compares the two given strings based on the data/content of the string. If all the contents of both the strings are same then it returns true. If any character does not match, then it returns false.

Sizin İçin Seçtik  3G'ye nasıl dönerim?

Leave a Reply

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