Course contentsShow
Java
Lesson 1088 of 2,87025. Set ImplementationsPro lesson

TreeSet's Reliance on compareTo, Not equals

Understand that TreeSet uses compareTo for ordering and duplicate detection, not equals or hashCode.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.