This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Regarding SortedSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding SortedSet" Watch "Regarding SortedSet" New topic
Author

Regarding SortedSet

Maddukuri Sudheer
Greenhorn

Joined: Jan 09, 2007
Posts: 4
Can some one help me wORKING WITH Sorted Collections Objects.My requirement is to sort among an unlimited objects and get the first 6 in descending Order.


Sudheer M
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You should read something about the Comparable interface and the Comparator class. Here is one tutorial :
http://www.onjava.com/pub/a/onjava/2003/03/12/java_comp.html


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding SortedSet