Re: hashCode for 4 ints?
- From: "huddler" <huddler@xxxxxxxxxxxxx>
- Date: 21 Jun 2005 10:07:46 -0700
Well, as a Java newbie, I'm in a constant state of confusion. In the
1.4.2 doc for the HashMap put() method, it says:
<quote>
public Object put(Object key,
Object value)
Associates the specified value with the specified key in this map. If
the map previously contained a mapping for this key, the old value is
replaced.
</quote>
So could I trouble you to explain (or point to an explanation) of why
your example and the doc SEEM to contradict each other?
http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html#put(java.lang.Object,%20java.lang.Object)
I await humiliation.
.
- Follow-Ups:
- Re: hashCode for 4 ints?
- From: Patricia Shanahan
- Re: hashCode for 4 ints?
- References:
- hashCode for 4 ints?
- From: Jeff
- Re: hashCode for 4 ints?
- From: Patricia Shanahan
- Re: hashCode for 4 ints?
- From: huddler
- Re: hashCode for 4 ints?
- From: Patricia Shanahan
- hashCode for 4 ints?
- Prev by Date: Re: JSP struts tag error
- Next by Date: Re: JNI_CreateJavaVM question
- Previous by thread: Re: hashCode for 4 ints?
- Next by thread: Re: hashCode for 4 ints?
- Index(es):
Relevant Pages
|
Loading