Tagged articles
5 articles
Page 1 of 1
Architect's Tech Stack
Architect's Tech Stack
Aug 12, 2021 · Fundamentals

Understanding and Implementing Java's StringJoiner: Source Code Analysis and Custom Usage

This article examines why a dedicated StringJoiner helper class is useful, compares it with StringBuilder, explores rarely used features, and provides a detailed analysis of the JDK implementation—including member variables, constructors, add, toString, merge, length, and custom empty value handling—along with practical code examples.

BackendStringJoinercode analysis
0 likes · 9 min read
Understanding and Implementing Java's StringJoiner: Source Code Analysis and Custom Usage
Architect's Tech Stack
Architect's Tech Stack
Feb 22, 2021 · Backend Development

Understanding Java's StringJoiner Implementation and Usage

This article explains why the original StringBuilder is limited, demonstrates how to use StringJoiner for comma‑separated strings, and provides a detailed analysis of the JDK source code including member fields, constructors, element addition, toString, length, merge, and empty‑value handling.

BackendJDKStringJoiner
0 likes · 7 min read
Understanding Java's StringJoiner Implementation and Usage
macrozheng
macrozheng
Dec 2, 2020 · Fundamentals

Master Java’s StringJoiner: Clean, Efficient String Concatenation

This article explains how Java 8’s StringJoiner simplifies concatenating delimited strings compared to StringBuilder/StringBuffer, covering basic usage, constructors, methods, prefix/suffix handling, empty value configuration, stream‑style chaining, and the related String.join() API with practical code examples.

Java 8StringStringJoiner
0 likes · 7 min read
Master Java’s StringJoiner: Clean, Efficient String Concatenation