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  What is the difference between equals () method and equality operator in Java?

Leave a Reply

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