A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Developer Certification (SCJD/OCMJD)
hashMap vs treemap
Joined: Apr 28, 2004
May 15, 2004 11:12:00
I need to store records + their lockCookies in a map.
treemap is ordered, so maybe use this one?
any opinions on best one to use?
Joined: Aug 20, 2003
May 15, 2004 13:38:00
Tree map is ordered, hence it is slowere than hash map. use tree map only if you need the order feature.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
I agree. Here's the link:
subject: hashMap vs treemap
Sorted map -- can't get there from here?
Internationalization of TreeMap
reading the elements in HashMap
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015