Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ordered and Sorted Collection

 
Vivek Nidhi
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
Can some one brief me what is this ordered collection and sorted collection
regs
Vivek Nidhi
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shahid Mithani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
Vivek Nidhi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic