Does list contain equals in Java?

If you look at the Javadoc for List at the contains method you will see that it uses the equals() method to evaluate if two objects are the same .

Sizin İçin Seçtik  Can a class have two objects in Java?

Leave a Reply

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