A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
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 pass a Map as an object into Hashtable
How to send an Object of name value pairs to another Page
HashTable - performance issue for millions of values stored
How to use Hashtable in iterate tag of Struts JSP
Passing object to excel spreadsheet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015