aspose file tools*
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
Author

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
regs
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
Greenhorn

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
Thanks
Vivek Nidhi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ordered and Sorted Collection