Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ordered and Sorted Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "ordered and Sorted Collection" Watch "ordered and Sorted Collection" New topic

ordered and Sorted Collection

Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
Hello there,
Can some one brief me what is this ordered collection and sorted collection
Vivek Nidhi
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Ordered collections are collections in which the items you add to the collection are maintained in the order you add them to the collection. Sorted collections are collections in which the items are maintained in a sort sequence of some type (either their natural sort sequence or a supplied sort sequence). The first group contains the List classes and the second group contains the Set classes.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Shahid Mithani

Joined: Dec 04, 2003
Posts: 8
Also, sorted collections are considered ordered too, simply for the fact that they have a "sorted" order, which may not be the order in which the elements were inserted.
Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
Vivek Nidhi
Have you checked out Aspose?
subject: ordered and Sorted Collection
It's not a secret anymore!