Question: Implement the Comparable interface in Song. You can choose to implement the compareTo method to compare song names, artists, or years. Add a sort method
Implement the Comparable interface in Song. You can choose to implement the compareTo method to compare song names, artists, or years. Add a sort method to the PlayList class that wraps Collections.sort(). Show console output that shows your PlayList before and after you call the sort() method PlayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
