Tagged articles
3 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 16, 2026 · Backend Development

14 Advanced Java Collection Tricks to Write Cleaner Code

This article presents fourteen practical Java collection techniques—ranging from creating immutable and empty collections to using computeIfAbsent, Map.merge, Collectors.groupingBy, and EnumMap/EnumSet—each illustrated with concise code snippets and explanations that improve readability, safety, and performance in Spring Boot applications.

CollectionsEnumMapJava 9
0 likes · 9 min read
14 Advanced Java Collection Tricks to Write Cleaner Code
Architect's Tech Stack
Architect's Tech Stack
Apr 24, 2021 · Backend Development

Using Java 8 Map.merge() to Aggregate Student Scores

This article introduces Java 8's Map.merge() method, demonstrates how to replace verbose map‑update code with a concise merge operation for summing student scores, explains the underlying mechanism, and briefly mentions related map utilities such as compute and putIfAbsent.

CollectionsFunctionalProgrammingMap.merge
0 likes · 6 min read
Using Java 8 Map.merge() to Aggregate Student Scores
Programmer DD
Programmer DD
Sep 9, 2020 · Backend Development

Mastering Java 8’s Map.merge(): Simplify Grouped Summations

This article explains Java 8’s Map.merge() method, demonstrating how to replace traditional looping logic with concise functional code to aggregate student scores, includes full code examples, compares it with conventional approaches, and discusses related map methods and practical use cases.

Java 8Map.mergefunctional programming
0 likes · 6 min read
Mastering Java 8’s Map.merge(): Simplify Grouped Summations