Search:

Type: Posts; User: syedbhai

Search: Search took 0.19 seconds.

  1. Replies
    20
    Views
    1,942

    Re: HashSet store duplicated Value

    jps,
    I have already read your post "The Problem with Spoonfeeding" earlier.
    After that I am trying my best to avoid spoonfeeding.

    If you see my recent posts I am hardly providing any code...
  2. Replies
    20
    Views
    1,942

    Re: HashSet store duplicated Value

    Hello.
    Just try this. It shall work.

    *code removed*

    Let me know if it is resolved. I don't think you need to override hashcode().
    Syed.
  3. Replies
    20
    Views
    1,942

    Re: HashSet store duplicated Value

    Hello.
    Even though in your fist posted code some objects have same values but their hashcodes are different.
    So for Set, these are distinct objects. If a same object is added several times...
Results 1 to 3 of 3