This content has been marked as final. Show 3 replies
It simply means that the class you want to sort has to implement the Comparable interface.
In relation to the code, DVDInfo could implement Comparable. GenreSort is a Comparator. Only one of the two are nescessary.
Thank you so much for the explanation. It makes sense to me now.