Tagged articles

Stream API

138 articles · Page 2 of 2
Top Architect
Top Architect
Jun 7, 2021 · Backend Development

Comprehensive Guide to Java Stream API with Practical Examples

This article provides an in‑depth tutorial on Java 8 Stream API, covering creation, intermediate and terminal operations, filtering, mapping, reducing, collecting, grouping, sorting, and practical code examples for processing collections such as employee data.

CollectionsJava 8Programming Tutorial
0 likes · 21 min read
Comprehensive Guide to Java Stream API with Practical Examples
21CTO
21CTO
May 23, 2021 · Backend Development

Unlock Java 9‑16: New APIs, Immutable Collections, and Stream Enhancements

This article introduces Java 9‑16 features such as factory methods for immutable collections, Optional.ifPresentOrElse, new Stream operations like takeWhile/dropWhile and toList, plus enhanced Duration and LocalDate utilities, providing concise, modern code patterns for developers.

DurationImmutable CollectionsJava 16
0 likes · 5 min read
Unlock Java 9‑16: New APIs, Immutable Collections, and Stream Enhancements
Programmer DD
Programmer DD
May 17, 2021 · Backend Development

Java Stream vs Iterator: Performance Benchmarks and Best Practices

This article explains Java 8 Stream fundamentals, compares intermediate and terminal operations, outlines stream characteristics and advantages over collections, and presents detailed benchmark results comparing Stream, parallel Stream, and traditional iterator across various data‑processing tasks.

IteratorStream APIbenchmark
0 likes · 13 min read
Java Stream vs Iterator: Performance Benchmarks and Best Practices
Programmer DD
Programmer DD
May 9, 2021 · Backend Development

How Stream API Can Shrink Your Java Code from 24 Lines to 5

This article explains Java 8's Stream API, showing how to replace verbose pre‑Java‑8 collection processing with concise, declarative stream operations, covering stream creation, intermediate and terminal operations, and practical examples such as filtering, sorting, mapping, grouping, and aggregation.

Functional ProgrammingJava 8Lambda
0 likes · 15 min read
How Stream API Can Shrink Your Java Code from 24 Lines to 5
Architect's Tech Stack
Architect's Tech Stack
Apr 28, 2021 · Backend Development

Java 8 Lambda Expressions, Functional Interfaces, and Stream API Tutorial

This article introduces Java 8's lambda expressions and functional interfaces, demonstrates custom functional interfaces, and explains how to use the Stream API with operations such as collect, filter, map, flatMap, max/min, count, reduce, partitioningBy, groupingBy, and joining, providing code examples throughout.

Functional InterfacesJava8Lambda
0 likes · 13 min read
Java 8 Lambda Expressions, Functional Interfaces, and Stream API Tutorial
Programmer DD
Programmer DD
Apr 26, 2021 · Backend Development

Boost Java Stream Productivity with IntelliJ Live Templates

This article explains how to use IntelliJ IDEA's Live Templates to create shortcuts for common Java Stream collectors, reducing repetitive code and improving productivity when working with lambda expressions and the Stream API.

IntelliJ IDEAJava 8Live Templates
0 likes · 6 min read
Boost Java Stream Productivity with IntelliJ Live Templates
Java Tech Enthusiast
Java Tech Enthusiast
Apr 12, 2021 · Backend Development

Java 8 Lambda Expressions, Stream API, and Optional Tutorial

Java 8 adds powerful functional constructs—lambda expressions, method and constructor references, the Stream API, and Optional—plus a modern, thread‑safe date‑time library, and this tutorial explains their syntax, core interfaces, common operations, and practical backend examples to improve code readability and conciseness.

Java8LambdaOptional
0 likes · 31 min read
Java 8 Lambda Expressions, Stream API, and Optional Tutorial
Architect's Tech Stack
Architect's Tech Stack
Mar 29, 2021 · Backend Development

Using IntelliJ IDEA Live Templates to Simplify Java Stream Collectors

This article explains how to upgrade Java code to use lambda expressions and the Stream API, highlights the inconvenience of repeatedly writing collect(Collectors.toList()) calls, and shows how IntelliJ IDEA's Live Templates can automate common collector patterns to boost productivity.

IntelliJ IDEALive TemplatesStream API
0 likes · 6 min read
Using IntelliJ IDEA Live Templates to Simplify Java Stream Collectors
Top Architect
Top Architect
Feb 23, 2021 · Backend Development

Understanding Java 8 Stream API: Architecture, Parallelism, and Best Practices

This article explains the design and implementation of Java 8 Stream API, covering its composition, pipelining, internal iteration, parallel execution via ForkJoinPool, performance considerations, ordering semantics, and practical guidelines for using parallel streams effectively.

ForkJoinPoolParallel StreamsStream API
0 likes · 21 min read
Understanding Java 8 Stream API: Architecture, Parallelism, and Best Practices
vivo Internet Technology
vivo Internet Technology
Nov 18, 2020 · Backend Development

Understanding Java 8 Stream API Pipeline and Its Internal Implementation

Java 8’s Stream API builds a lazy pipeline where each intermediate operation is recorded as a stage and only a terminal operation triggers a single-pass execution, using internal classes like ReferencePipeline, Slink, and Sink to efficiently combine stateless, stateful, and short‑circuiting operations.

Functional ProgrammingStream APIbackend development
0 likes · 8 min read
Understanding Java 8 Stream API Pipeline and Its Internal Implementation
Java Architect Essentials
Java Architect Essentials
Oct 18, 2020 · Backend Development

Performance Evaluation of Java Stream API: Serial vs Parallel Execution

This article presents a series of Java Stream API performance experiments—comparing serial and parallel streams on primitive, object, and reduction tasks—showing that while serial streams are slower than traditional loops for simple operations, parallel streams can significantly outperform both in multi‑core environments.

Stream APIbackend developmentparallel computing
0 likes · 7 min read
Performance Evaluation of Java Stream API: Serial vs Parallel Execution
Programmer DD
Programmer DD
Oct 11, 2020 · Fundamentals

Unlock Java 8: Master Lambda Expressions and Stream API with Real Code Examples

This article introduces Java 8’s key functional programming features—lambda expressions, functional interfaces, and the Stream API—explaining concepts such as lazy and eager evaluation, and demonstrating common operations like filter, map, flatMap, collect, reduce, and grouping with clear code examples.

Functional InterfacesFunctional ProgrammingJava 8
0 likes · 15 min read
Unlock Java 8: Master Lambda Expressions and Stream API with Real Code Examples
FunTester
FunTester
Oct 10, 2020 · Backend Development

Understanding Java Stream map() vs flatMap() with Practical Code Samples

This article explains the functional differences between Java Stream's map() and flatMap() methods, demonstrates their behavior with simple and nested list examples, and clarifies how each transforms or flattens data in Java 8 streams.

Functional ProgrammingJava8Stream API
0 likes · 7 min read
Understanding Java Stream map() vs flatMap() with Practical Code Samples
Java Captain
Java Captain
Sep 13, 2020 · Fundamentals

Java 8 Lambda Expressions, Functional Interfaces, and Stream API Tutorial

This article introduces Java 8's lambda expressions and functional interfaces, demonstrates their usage with examples, and explains how to leverage the Stream API—including operations like filter, map, flatMap, reduce, collect, and grouping—to process collections efficiently.

Functional InterfacesLambdaStream API
0 likes · 15 min read
Java 8 Lambda Expressions, Functional Interfaces, and Stream API Tutorial
macrozheng
macrozheng
Aug 25, 2020 · Backend Development

How Does Java Stream’s Pipeline Work Under the Hood?

This article explains the internal mechanics of Java Stream’s pipeline, covering how operations are recorded as stages, how intermediate and terminal operations are composed via the Sink interface, and why the implementation achieves lazy evaluation and efficient parallel execution.

Stream APIbackendjava
0 likes · 22 min read
How Does Java Stream’s Pipeline Work Under the Hood?
Programmer DD
Programmer DD
Jul 7, 2020 · Backend Development

Boost Java Stream Productivity with IntelliJ Live Templates

This article explains how to streamline Java 8 Stream operations by creating IntelliJ IDEA live templates for common collectors like toList, toSet, joining, and groupingBy, reducing repetitive code and improving developer productivity.

IntelliJ IDEAJava 8Live Templates
0 likes · 8 min read
Boost Java Stream Productivity with IntelliJ Live Templates
Programmer DD
Programmer DD
Jun 5, 2020 · Backend Development

How to Sum BigDecimal Values with Java Stream API and Reduce

This tutorial explains how to use Java's Stream API to sum numeric collections, demonstrates summing IntStream and DoubleStream values, and shows how to apply the reduce method to calculate sums for BigDecimal streams when a dedicated BigDecimalStream is unavailable.

BigDecimalStream APISum
0 likes · 4 min read
How to Sum BigDecimal Values with Java Stream API and Reduce
Programmer DD
Programmer DD
Mar 20, 2020 · Backend Development

Master Java Lambdas: From Basics to Advanced Stream Tricks

This article explains what a Lambda expression is in Java, how it enables assigning code to variables via functional interfaces, demonstrates concise syntax improvements, and shows practical applications with forEach, streams, method references, and Optional handling to write cleaner, more elegant backend code.

Functional InterfaceLambdaOptional
0 likes · 9 min read
Master Java Lambdas: From Basics to Advanced Stream Tricks
macrozheng
macrozheng
Feb 13, 2020 · Backend Development

How Fast Is Java Stream API? In‑Depth Performance Benchmarks Revealed

This article presents a comprehensive benchmark of Java's Stream API, comparing its serial and parallel performance against traditional loops across primitive, object, and reduction operations, and offers practical recommendations based on multi‑core versus single‑core results.

Stream APIbenchmarkjava
0 likes · 9 min read
How Fast Is Java Stream API? In‑Depth Performance Benchmarks Revealed
Programmer DD
Programmer DD
Jan 9, 2020 · Backend Development

Unlock Java 8 Lambdas: Simplify Code with Streams, Method References & Optional

This article explains Java 8 Lambda expressions, functional interfaces, and how they enable concise code through streams, method references, and Optional for elegant null handling, providing step‑by‑step examples and visual illustrations to help developers modernize their Java code.

Functional InterfaceJava 8Lambda
0 likes · 7 min read
Unlock Java 8 Lambdas: Simplify Code with Streams, Method References & Optional
Programmer DD
Programmer DD
Dec 18, 2019 · Backend Development

Master Java 8 Streams: From Basics to Advanced Operations

This article introduces Java 8's Stream API, explains why functional streams improve code readability and performance, and provides detailed examples of common operations such as filter, map, flatMap, reduce, collect, Optional handling, parallel processing, and debugging techniques for efficient data processing.

Data ProcessingFunctional ProgrammingJava 8
0 likes · 16 min read
Master Java 8 Streams: From Basics to Advanced Operations
Programmer DD
Programmer DD
Nov 30, 2019 · Backend Development

Master Java 8 Stream: When to Use map vs flatMap

This tutorial explains how Java 8's Stream API's map and flatMap operations work, showing practical examples of extracting student ages from collections and demonstrating why flatMap is needed to flatten nested lists, with clear code snippets and diagrams.

Functional ProgrammingJava 8Stream API
0 likes · 4 min read
Master Java 8 Stream: When to Use map vs flatMap
Programmer DD
Programmer DD
Nov 23, 2019 · Backend Development

Master Java Stream skip() and limit(): When and How to Trim Your Data

This article explains the Java 8 Stream API's skip() and limit() intermediate operations, showing how they truncate streams, handling of edge cases, code examples, and key differences to help developers choose the right method for their data processing needs.

Java 8LIMITStream API
0 likes · 4 min read
Master Java Stream skip() and limit(): When and How to Trim Your Data
Programmer DD
Programmer DD
Oct 25, 2019 · Backend Development

Master Java 8 Streams: From Basics to Powerful Operations

This article introduces Java 8 Stream API, explains its core concepts, shows how to generate streams, details intermediate and terminal operations with practical code examples, and provides a visual overview of the Stream hierarchy for developers seeking to write concise and efficient Java code.

Java 8LambdaStream API
0 likes · 16 min read
Master Java 8 Streams: From Basics to Powerful Operations
macrozheng
macrozheng
Sep 2, 2019 · Backend Development

Master Java 8 Stream API: From Basics to Tree Structures

This article introduces Java 8's Stream API, explains core concepts like streams, sources, and aggregation operations, and demonstrates common methods such as filter, map, limit, count, sorted, skip, and collect with practical code examples that build hierarchical permission trees.

Functional ProgrammingJava 8Stream API
0 likes · 8 min read
Master Java 8 Stream API: From Basics to Tree Structures
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 2, 2019 · Fundamentals

Introduction to Java 8 Stream API: Creation, Intermediate and Terminal Operations

This article introduces Java 8’s Stream API, explaining its purpose, key characteristics, how to create streams from collections or directly, and demonstrating common intermediate operations such as filter, map, limit, sorted, distinct, as well as terminal operations like forEach, count, and collect, with code examples.

CollectionsFunctional ProgrammingIntermediate Operations
0 likes · 9 min read
Introduction to Java 8 Stream API: Creation, Intermediate and Terminal Operations
Architect's Tech Stack
Architect's Tech Stack
Aug 31, 2019 · Backend Development

Performance Comparison of Java Stream API vs Iterator for Common Operations

This article analyzes Java 8 Stream API versus traditional iterator approaches across mapping, filtering, sorting, reduction, string concatenation and mixed operations, presenting benchmark results on various data sizes and offering practical recommendations for when to use streams, parallel streams, or iterators.

IteratorStream APIbenchmark
0 likes · 12 min read
Performance Comparison of Java Stream API vs Iterator for Common Operations
Architect's Tech Stack
Architect's Tech Stack
Jul 14, 2019 · Backend Development

Performance Evaluation of Java 8 Stream API: Benchmarks and Insights

This article presents a comprehensive benchmark of Java 8 Stream API on large‑scale data, comparing serial and parallel stream operations with traditional external iteration across primitive, object, and reduction workloads, and draws practical recommendations on when to use streams for optimal performance.

JVMStream APIbenchmark
0 likes · 8 min read
Performance Evaluation of Java 8 Stream API: Benchmarks and Insights
Java Backend Technology
Java Backend Technology
Jun 13, 2019 · Backend Development

What Makes Java Code Terrible? 7 Jaw‑Dropping Bad Code Examples Revealed

An eye‑opening roundup of seven notoriously awful Java snippets—from misused StringBuffer and endless nested loops to convoluted Stream pipelines and absurd exception definitions—showcasing why such code is a nightmare, how it hampers readability, and what refactoring strategies can rescue it.

Stream APIbad practicescode smells
0 likes · 15 min read
What Makes Java Code Terrible? 7 Jaw‑Dropping Bad Code Examples Revealed
Java Backend Technology
Java Backend Technology
Apr 16, 2019 · Backend Development

Master Java Stream API: From Basics to Advanced Operations

This article introduces Java 8's Stream API, explains why functional streams improve code readability and performance, and walks through core operations such as filter, map, flatMap, reduce, collect, Optional handling, concurrency, and debugging techniques with clear examples and illustrations.

Functional ProgrammingJava 8Stream API
0 likes · 7 min read
Master Java Stream API: From Basics to Advanced Operations
Qunar Tech Salon
Qunar Tech Salon
Jan 3, 2019 · Backend Development

Understanding RxJava: Benefits, Use Cases, and Practical Guidance

This article explains RxJava’s origins, core concepts, advantages, common operators, threading strategies, and practical experiences, illustrating how adopting RxJava with Java 8, Lambda, and Stream API can simplify complex, rapidly changing backend systems and improve code readability, maintainability, and performance.

AsynchronousReactive ProgrammingRxJava
0 likes · 13 min read
Understanding RxJava: Benefits, Use Cases, and Practical Guidance