how can i sort the titles of the songs in descending order by using String.comparTo() method?
Peter den Haan
posted 13 years ago
Collections.sort(songs, Collections.reverseOrder()); Assuming that "songs" is a List of song titles or Song objects that have a sensible natural ordering. If not, then please tell us a bit more about your problem. - Peter