Re: Java HashSet Problem
- From: twizansk@xxxxxxxxx
- Date: Fri, 14 Mar 2008 11:02:03 -0700 (PDT)
On Mar 14, 5:05 am, Roedy Green <see_webs...@xxxxxxxxxxxxxxxxxxxx>
wrote:
On 14 Mar 2008 06:50:57 GMT, Gordon Beaton <n....@xxxxxxxxx> wrote,
quoted or indirectly quoted someone who said :
Indeed. Perhaps if you actually *read* the thread before posting your
reply, you would have seen that the correct answer had already been
posted twice by others.
Guilty as charged. In general I don't read all the threads, mainly
because so few of the posts have anything to do with the topic at
hand. Most are about one-up-manship games, as was your post.
--
Roedy Green Canadian Mind Products
The Java Glossaryhttp://mindprod.com
Thanks everyone. I overrode equals() instead of overloading it and
now it works perfectly. Stupid mistake o my part but I guess you
learn something new every day.
.
- Follow-Ups:
- Re: Java HashSet Problem
- From: Andrew Thompson
- Re: Java HashSet Problem
- References:
- Java HashSet Problem
- From: twizansk
- Re: Java HashSet Problem
- From: Roedy Green
- Re: Java HashSet Problem
- From: Lew
- Re: Java HashSet Problem
- From: Roedy Green
- Re: Java HashSet Problem
- From: Gordon Beaton
- Re: Java HashSet Problem
- From: Roedy Green
- Java HashSet Problem
- Prev by Date: How to move directory ( with contents) to another directory.
- Next by Date: Re: Graphics2D question
- Previous by thread: Re: Java HashSet Problem
- Next by thread: Re: Java HashSet Problem
- Index(es):
Relevant Pages
|