Learn how to sort a Collection of custom Objects using multiple fields in Java using Comparator’s compareTo() and comparing() methods
Author: Amit Phaltankar Tutorials
Case-Insensitive Search in Java ArrayLists
Examples of searching an element in an ArrayList ignoring its case. Overview Java ArrayList is a dynamically growing ordered collection of elements and is widely used. This tutorial demonstrates various […]
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