News

Finding duplicates in a Java list? That’s actually a bit more complicated ... If you only need a unique list of the duplicate items, you could use a HashSet instead of an ArrayList to hold duplicates.