Skip to content

Roy Tutorials

Technical… Theoretical… Practical…

  • Home
  • FAQs
  • About Me
  • Home
  • Duplicate Objects

Tag: Duplicate Objects

In this post, I will show you how to remove duplicate objects from a List using Java’s Comparator interface implementation based on multiple fields in a POJO. You can also check the duplicate objects in a list by overriding hashCode() and equals() methods in the POJO class. In other words, you are going to get…

Leave a Comment on Remove Duplicate Objects from a List using Java
Posted in Java

Remove Duplicate Objects from a List using Java

In this post, I will show you how to find duplicate objects in a List using Java’s Comparator interface implementation based on multiple fields in a POJO. Prerequisites The following configurations are required in order to run the application Eclipse JDK 1.8 Have maven installed and configured Junit, Mockito, PowerMockito dependency in pom.xml Now we…

Leave a Comment on Find Duplicate Objects in a List using Java
Posted in Java

Find Duplicate Objects in a List using Java

Categories

Copyright © 2014 - 2023 Roy Tutorials

Privacy | Terms & Conditions