Monday, 25 April 2016

Remove duplicate element from a List


Scenario : How will you remove duplicate element from a List ?

Add the List elements to Set Using iterator / loop or using addAll() methodDuplicates will be removed.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.