Blogger

Delete comment from: Java67

Anonymous said...

This approach is only working for array lists of primitive Java types. If you put complex objects in Java set you will still have duplicates. You must override hashCode method of object type to get this approach to work.

Dec 17, 2016, 10:27:59 PM


Posted to How to Remove Duplicates from ArrayList in Java [Example]

Google apps
Main menu