Search:

Type: Posts; User: jeichenlaubjr

Search: Search took 0.21 seconds.

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

    As I said I am new to java.
    So could you explain to me the difference between:

    Set<SelectedItem> showSet = new HashSet<SelectItem>();

    and

    Set showSet = new HashSet();

    [testing to see if...
  2. Re: Removing Duplicates not working ... new to java

    That's what I thought based on what I am seeing. My quest/question is how to overcome that and pass to the Set showSet values it can apply the equals() method to effective and remove any duplicates.
  3. Re: Removing Duplicates not working ... new to java

    SelectItem is a component of the web gui, specifically:
    java.lang.Object
    |
    +--javax.faces.model.SelectItem
  4. Re: Removing Duplicates not working ... new to java

    set up two System.out.println statements
    System.out.println("attr2Item--->"+attr2Item);
    System.out.println("attr2Item--->"+attr2Item.getValue());
    right before the showSet.add(attr2Item);

    in my...
  5. Removing Duplicates not working ... new to java

    I inherited this class what I am trying to do is:
    1) create a Set of SelectItem (works)
    2) query the database for records (works)
    3) grab the column from the recordset call attribute2 (works)
    4)...
Results 1 to 5 of 6