Tagged articles

Collect

2 articles · Page 1 of 1
CodeNotes
CodeNotes
May 26, 2026 · Fundamentals

Master Java Stream API: filter, map, collect in One Line

This article introduces Java 8's Stream API, explaining its lazy, declarative processing model, how to create streams from collections or arrays, and demonstrates core intermediate and terminal operations with concrete code examples and a practical employee‑salary use case.

CollectFunctional ProgrammingJava Stream
0 likes · 10 min read
Master Java Stream API: filter, map, collect in One Line
Shepherd Advanced Notes
Shepherd Advanced Notes
Aug 19, 2024 · Backend Development

Real-World Java Stream API: From Theory to Practical Code

This article walks through Java Stream fundamentals, showing how to replace verbose loops with concise Stream pipelines, compares map and flatMap, explains intermediate and terminal operations such as filter, sorted, distinct, limit, peek, foreach, and collect, demonstrates parallel streams, highlights common pitfalls, and summarizes the advantages and disadvantages of using Stream APIs in everyday development.

CollectFunctional ProgrammingJava
0 likes · 21 min read
Real-World Java Stream API: From Theory to Practical Code