How do you write equals method in Java?

In Java terms, they are equal, which is checked with equals : String some = “some string”; String other = “some string”; boolean equal = some. equals(other); Here, equals is true .

Sizin İçin Seçtik  How do you define something in Java?

Leave a Reply

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