wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding SortedSet" Watch "Regarding SortedSet" New topic

Regarding SortedSet

Maddukuri Sudheer

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é

Joined: Nov 24, 2005
Posts: 14687

You should read something about the Comparable interface and the Comparator class. Here is one tutorial :

[My Blog]
All roads lead to JavaRanch
It is sorta covered in the JavaRanch Style Guide.
subject: Regarding SortedSet
Similar Threads
jsp sending values
Tomcat 3.2.3 and VisualAge Java 4
help with loop
WA #1.....word association
New Session Created Randomly in Tomcat 5.0.28