ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

-1
Date Submitted Sat. May. 10th, 2008 11:10 AM
Revision 1
Beginner Kelmi
Tags doubles | List | REMOVE | Set
Comments 3 comments
The method 'removeDoubles' uses a HashSet to remove double elements from a list without creating another list. The first occurrences of the multiple elements are kept, others will be removed. The order of the list will be preserved. The parameter list's iterator must support remove. Example of use is given in the main-method.