Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Clifton Flores   on Jan 26 In Java Category.

  
Question Answered By: Latasha Wilson   on Jan 26

Look at the following classes :

java.util.Collections
java.util.Comparator

So what you do is create a class and implement
Comparator, this does the actual sorting.

Then just do the following,

Collections.sort( LIST, COMPARATOR_CLASS );

Share: