Learn how to sort a Collection of custom Objects using multiple fields in Java using Comparator’s compareTo() and comparing() methods
Learn different ways to flatten a nested List in Java. A flattened List contains elements from all the nested Lists.
This article contains examples of finding the difference between two Java Set implementations. Overview Java Set is a collection of unique elements, and they are used in many use cases. […]
Learn compare, find commonality, and difference in two Java Lists using Plain Java, Java Streams, and Commons Collections library
How to find difference between two Lists in Java using Plain Java, Streams API, Apache Commons Collections, and Google Guava Library
A unit testing guide to asserting if two Java Lists are equals ignoring the order using JUnit, TestNG, AssertJ, Hamcrest, or Apache Comons