Tag Archives: Unique items from a List

Retrieving unique items from a List in Java

Here is a very simple and efficient way to retrieve unique items from a java.util.List. All you need to do is put all the items in the java.util.List into a java.util.Set and then create a new java.util.Listfrom the Set. Since … Continue reading

Posted in Java | Tagged , , | 1 Comment