Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Collection object which allows duplicate keys

807597Jul 22 2005 — edited Jul 22 2005
I wanted to know if there is any Collection object which allows me to store multiple values for a key.

I have the data:

key "a" - value "0"
key "a" - value "1"
key "a" - value "2"
key "b" - value "3"
key "b" - value "4"
key "c" - value "5"

Is there some collection object where I can store the above data which includes duplication of keys?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2005
Added on Jul 22 2005
8 comments
767 views