A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Joined: Feb 05, 2010
Apr 20, 2010 07:32:32
I want to create a hashtable but I have two keys and one value.
means i have the unique pair of key to determine value.
Can you suggest me how to go for it?
I need an efficient solution.
Joined: Mar 20, 2007
Apr 20, 2010 08:57:02
1) Just create a class with the two keys as properties
2) use the class's objects as keys instead.
I agree. Here's the link:
How to send an Object of name value pairs to another Page
Passing object to excel spreadsheet
How to pass a Map as an object into Hashtable
HashTable - performance issue for millions of values stored
How to use Hashtable in iterate tag of Struts JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014