dcsimg
Collection..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, July 6, 2007 09:43 AM

Is there any collection in which we can have two keys for the same value....Like in HashTable we have

key k1 for value v1

I want it like

key k1, k2 for value v1

Re: Collection..

Posted By:   WarnerJan_Veldhuis  
Posted On:   Friday, July 6, 2007 10:23 AM

You can do the same with a HashMap. You'd have k1 -> v1, and k2 -> v1, which basically yields the same results. You would have to keys pointing to the same object.
About | Sitemap | Contact