How to find difference between two Lists in Java using Plain Java, Streams API, Apache Commons Collections, and Google Guava Library
Java Streams Tutorials
Java 8 Streams is a lazily loaded and processed flow of elements that supports applying various transformations and manipulations using functional style API.
Java HashSet Sorting Examples
A guide showing how to sort Java HashSet instances using a TreeSet, the Collections.sort() method, and the Stream.sort() method
Chaining Multiple Java Predicates Together
Examples of chaining multiple Predicates to derive complex filter criteria in Java using AND, OR, or NOT operators
Java Streams filter() with Lambda Expressions
A guide to using Java Streams filter() method with lambda expressions and method reference and handling exceptions in the filter() method
Negate a Java Predicate and Method Reference
Learn how to negate Java Predicate and Java Method References using not() and negate() methods in Predicate class
Count and Remove Duplicates from a Java Stream
Examples of how to find, count, and remove duplicate elements from a Java Stream using the distinct() and the distinctByKey() methods