Learn how to sort a Collection of custom Objects using multiple fields in Java using Comparator’s compareTo() and comparing() methods
Java Core Tutorials
Java Core defines the basics of Java Programming language and language fundaments
Flattening Nested Lists in Java
Learn different ways to flatten a nested List in Java. A flattened List contains elements from all the nested Lists.
Finding the Difference Between Two Java Sets
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. […]
Comparing Two Lists In Java
Learn compare, find commonality, and difference in two Java Lists using Plain Java, Java Streams, and Commons Collections library
Finding the Difference Between Two Java Lists
How to find difference between two Lists in Java using Plain Java, Streams API, Apache Commons Collections, and Google Guava Library
Asserting Java Lists for Equality Ignoring the Order
A unit testing guide to asserting if two Java Lists are equals ignoring the order using JUnit, TestNG, AssertJ, Hamcrest, or Apache Comons