Comment provided by Cody - via ArticleComments extension
←Older revision | Revision as of 12:22, 23 October 2013 | ||
Line 188: | Line 188: | ||
--Roberta 14:16, 23 October 2013 (CEST) | --Roberta 14:16, 23 October 2013 (CEST) | ||
+ | </div> | ||
+ | == Cody said ... == | ||
+ | |||
+ | <div class='commentBlock'> | ||
+ | ArrayList to HashSet conversion is my most prreeerfd method to remove duplicates from collection if Insertion order is not concern, as insertion order gets lost when you copy elements form ArrayList to HashSet. if you still wants to use HashSet to remove duplicates and want to keep the insertion order of List than consider using LinkedHashSet. | ||
+ | |||
+ | --Cody 14:22, 23 October 2013 (CEST) | ||
</div> | </div> |