Skip to content
amitph
  • Home
  • Spring
  • Java
  • Java 8
  • About

Home » Java Streams » Page 3

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.

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

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.

Posts pagination

< Prev 1 2 3 4 5 Next >
https://www.amitph.com

Topics

  • Java
  • Scala
  • Spring

Resources

  • About
  • Contact us
  • Java Tutorials
  • Spring Tutorials
  • Java Streams and Lambdas
  • Learning Scala
  • Home
  • MongoDB Fundamentals – Book

Latest

  • Sorting Collection of Objects by Multiple Fields in Java
  • Case-Insensitive Search in Java ArrayLists
  • Flattening Nested Lists in Java
  • Finding the Difference Between Two Java Sets
  • Comparing Two Lists In Java
© 2025 amitph.