Tagged articles

CodeExample

10 articles · Page 1 of 1
Lisa Notes
Lisa Notes
Jun 29, 2026 · Fundamentals

Java Basics: Using StringBuilder for Efficient Mutable Strings

The article explains why Java's immutable String class can waste memory when concatenated, introduces the mutable StringBuilder class introduced in J2SE 5.0, demonstrates its usage with code examples comparing memory behavior, shows its length and capacity methods, and illustrates practical operations such as reverse and conversion between String and StringBuilder.

CodeExampleJavaMemoryManagement
0 likes · 7 min read
Java Basics: Using StringBuilder for Efficient Mutable Strings
Selected Java Interview Questions
Selected Java Interview Questions
Sep 20, 2024 · Information Security

Generating and Verifying Java License Files with TrueLicense

This article explains how to generate a Java license using TrueLicense, configure key pairs, create the license file, and integrate verification and installation steps into a Spring Boot application, including detailed code examples and deployment considerations for secure software licensing.

CodeExampleJavaSpringBoot
0 likes · 15 min read
Generating and Verifying Java License Files with TrueLicense
Selected Java Interview Questions
Selected Java Interview Questions
Mar 6, 2024 · Backend Development

Encapsulating EasyExcel for Simplified Import/Export in Spring Boot Applications

This article demonstrates how to wrap EasyExcel within a Spring Boot + MyBatis‑Plus project to provide clean, reusable import and export APIs, covering environment setup, annotation usage, controller implementation, core service design, common pitfalls, and solutions for date and template handling.

CodeExampleEasyExcelExcelImportExport
0 likes · 19 min read
Encapsulating EasyExcel for Simplified Import/Export in Spring Boot Applications
Java Architect Essentials
Java Architect Essentials
Feb 15, 2023 · Backend Development

Mastering Java Optional: Creation, Methods, Real‑World Use Cases and Pitfalls

This article explains Java's Optional class, showing how to create empty or non‑empty instances, detailing key methods such as get, isPresent, ifPresent, orElse, orElseGet, orElseThrow, map, flatMap, filter, and illustrating practical service‑layer scenarios, JDK 9 enhancements, and when overusing Optional can hurt readability.

CodeExampleFunctionalProgrammingJDK9
0 likes · 10 min read
Mastering Java Optional: Creation, Methods, Real‑World Use Cases and Pitfalls
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 22, 2022 · Fundamentals

Unveiling Java 8 Lambda: Inside the Stream Pipeline Mechanics

This article delves into the internal design and execution of Java 8 lambda expressions, dissecting the Stream API pipeline—from source creation through intermediate operations like map and filter to terminal actions such as collect and sum—while illustrating each step with concrete code examples.

CodeExampleConcurrencyJava
0 likes · 14 min read
Unveiling Java 8 Lambda: Inside the Stream Pipeline Mechanics
Tencent Cloud Developer
Tencent Cloud Developer
Apr 13, 2022 · Backend Development

Using Go 1.18 Multi‑Module Workspaces: Tutorial and Practical Examples

The article walks through Go 1.18’s new multi‑module workspaces, detailing prerequisites and essential commands, then demonstrates creating a simple “hello” module and a shared library, initializing a workspace with go work, and developing both modules concurrently without committing changes.

CodeExampleGo1.18Workspaces
0 likes · 11 min read
Using Go 1.18 Multi‑Module Workspaces: Tutorial and Practical Examples
Top Architect
Top Architect
Aug 29, 2020 · Backend Development

Replacing If‑Else with Enum‑Based Channel Rules in Java

This article demonstrates how to refactor channel‑specific processing logic in Java by introducing an abstract rule class, concrete channel rule implementations, and an enum that binds channel identifiers to their rule objects, thereby eliminating cumbersome if‑else statements and adhering to the open/closed principle.

CodeExampleDesignPatternEnum
0 likes · 5 min read
Replacing If‑Else with Enum‑Based Channel Rules in Java