Examples of using Java Streams API sorted() method to sort different Java Collections in ascending or descending order
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.
Comparator with Java Lambda Expression Examples
Examples of Java Lambda Expression based Comparator implementation to sort collections in ascending or descending order
Sort HashMap by Value or Key in Java
Learn different techniques of Sorting HashMap by value or by key using Plain Java, Java. Streams API, TreeSet, TreeMap, or ArrayList.
Merging two Maps in Java
Examples of using Java Streams and Java Maps merge() methods to merge or combine key and value pairs of two Maps in Java
Using Filter on Stream of Maps in Java
Different examples of using plain Java and Java Streams API to filter elements of a Java Map based on given condition
Converting Between Array of Primitives to Array of Objects
Learn converting between an array of primitives and array of wrapper objects – using iteration, java streams, or apache commons library