aspose file tools*
The moose likes Beginning Java and the fly likes hashtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "hashtable" Watch "hashtable" New topic
Author

hashtable

him jain
Ranch Hand

Joined: Feb 05, 2010
Posts: 56
hi..
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.
Thanks.


--Himanshu Jain
http://jainhim.blogspot.com/
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
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: http://aspose.com/file-tools
 
subject: hashtable
 
Similar Threads
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