Interfaces: Comparable Interface Part 2 (Java)

Interfaces: Comparable Interface Part 2 (Java)

Author: Nathan Schutz
See More
Try a College Course Free

Sophia’s self-paced online courses are a great way to save time and money as you earn credits eligible for transfer to over 2,000 colleges and universities.*

Begin Free Trial
No credit card required

28 Sophia partners guarantee credit transfer.

264 Institutions have accepted or given pre-approval for credit transfer.

* The American Council on Education's College Credit Recommendation Service (ACE Credit®) has evaluated and recommended college credit for 22 of Sophia’s online courses. More than 2,000 colleges and universities consider ACE CREDIT recommendations in determining the applicability to their course and degree programs.


Interfaces: Comparable Interface Part 2 (Java)

This video looks at how the compareTo() method of the Comparable interface can be implemented in the Java programming language. It shows how the compareTo() method can be used to compare multiple variables and sort items accordingly.