• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collections

 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which class will you use to create a collection of unique and sorted Objects?
Thanks,
Angela
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps TreeSet which implements the SortedSet interface will suit your needs.
hth,
bear
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Angela D'souza:
Which class will you use to create a collection of unique and sorted Objects?
Thanks,
Angela

Have a read on Sun's tech tips for SortedSets. It gives you some explanations and examples on SortedSets.
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic