How can we remove duplicates using sort stage?

Showing Answers 1 - 3 of 3 Answers

Vikas

  • Feb 9th, 2007
 

Set the "Allow Duplicates" option to false

  Was this answer useful?  Yes

Alex

  • Feb 28th, 2007
 

  TreeSet<String> set = new TreeSet<String>(Arrays.asList(names));
        for (String name : set)
           System.out.println(name);


this is enough for sorting and removing of duplicate elements (using Java 5 in this example)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions