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!

java.util.hashSet - does it rwaly not allow duplicates ?

843789Jan 28 2010 — edited Jan 28 2010
>
add(Object o)
Adds the specified element to this set if it is not already present.
>

so how come that my hasSet has 2 equal elemsts like:
"http://www.x/x/x/x.asp?CODE=E01F5873-08CB-4239-8040-4F633282ACF2 "
"http://www.x/x/x/x.asp?CODE=E01F5873-08CB-4239-8040-4F633282ACF2 "

?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2010
Added on Jan 28 2010
1 comment
142 views