Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,427

    Re: Removing Duplicates not working ... new to java

    The first uses generics notation which allows the compiler to check the usage of the object and do casts for you.
  2. Replies
    8
    Views
    1,427

    Re: Removing Duplicates not working ... new to java

    Read the API doc for the Set class. It's explained there. SelectItem needs to override equals() and hashcode() if you want to tell the Set class that two objects are "duplicates".
  3. Replies
    8
    Views
    1,427

    Re: Removing Duplicates not working ... new to java

    The Set class can't/doesn't look inside of an object.

    Which are the duplicates? Your posts don't have any comments like:
    <<<<<<<<< First of two
    ...
    <<<<<<<<< Second that is duplicate of First
  4. Replies
    8
    Views
    1,427

    Re: Removing Duplicates not working ... new to java

    By definition a Set only contains unique elements. Where and how are you seeing duplicates?
    Can you post what you are seeing that makes you think there are duplicates?

    What is the definition of:...
Results 1 to 4 of 4