This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes difference between sortedmap and treemap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "difference between sortedmap and treemap" Watch "difference between sortedmap and treemap" New topic
Author

difference between sortedmap and treemap

Chris Davies
Ranch Hand

Joined: Feb 26, 2003
Posts: 110
what is the difference betwen these two interfaces ?

is it the same as sortedet and treeset ?

both seem to sort in order ? is it the key /value issue ?

cheers

chris


One day all greenhorns will run free ...
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
It looks to me that TreeMap is an implementation of the interface SortedMap. (As TreeSet is an implementation of SortedSet). So a comparison seems to be meaningless.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between sortedmap and treemap
 
Similar Threads
Array Initilaize
Clarification
interview question
WA #1.....word association
Why anonymous posts are allowed in this forum ?