Does HashMap provide a one to one correspondence?
Posted
by Roman
on Stack Overflow
See other posts from Stack Overflow
or by Roman
Published on 2010-03-23T15:04:17Z
Indexed on
2010/03/23
15:13 UTC
Read the original article
Hit count: 322
I found the following statement:
Map is an object that stores key/volume pairs. Given a key, you can find its value. Keys must be unique, but values may be duplicated.
For example I have just one key/value pair (3,4). And now I put
a new pair (3,5). It will remove the old pair. Right? But if I put
(2,4) instead of (3,4) I will add a new pair of key/value to the HashMap. Right?
© Stack Overflow or respective owner