Remove duplicates from ArrayList
Two ways to remove duplicates from ArrayList are:
HashSet: Developer can use HashSet to remove the duplicate element from the ArrayList. The drawback is it cannot preserve the insertion order.
LinkedHashSet: Developers can also maintain the order of insertion by using LinkedHashSet instead of HashSet.

www.TechSearhWeb.com