Learn converting between an array of primitives and array of wrapper objects – using iteration, java streams, or apache commons 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.
List Files and Subdirectories from a Directory in Java
A quick tutorial with examples covers various ways to iterate and list files from or directory and list subdirectories of a directory or folder in Java
How to Merge Multiple Collections in Java
Learn different techniques to merge or concatenate multiple collections together in Java with the help of practical examples
How to Initialize a List Inline in Java
Examples of initializing mutable and immutable Java ArrayList in the same line using factory method, Stream, Collections, and Arrays
How to Remove Duplicate Elements from a Java List
Examples of removing the duplicate elements from a Java List, by using Java Streams API or by using Java Set implementation
How to write Java Streams Custom Collector
Hands on tutorial to write Java Streams Custom Collector and use it on Streams to collect Stream elements.