A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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
subject: hashMap vs treemap
reading the elements in HashMap
Internationalization of TreeMap
Sorted map -- can't get there from here?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014