Course contentsShow
Java
Lesson 1310 of 2,87030. Comparable and ComparatorPro lesson

The Comparable<T> Interface

Comparable is a generic interface with one method, compareTo, that defines how objects of a class compare to each other.

This lesson is for subscribers

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