Tagged articles

concatenation

5 articles · Page 1 of 1
Lisa Notes
Lisa Notes
Jun 27, 2026 · Fundamentals

How to Create, Manipulate, and Compare Java Strings Effectively

This article explains Java's immutable String class, covering three ways to instantiate strings, methods for length, concatenation (concat and +), character access, substring extraction, splitting, replacing, searching, and comparison using equals versus ==, with concrete code examples and key rules for each operation.

ComparisonImmutableSubstring
0 likes · 12 min read
How to Create, Manipulate, and Compare Java Strings Effectively
Subtle Storm
Subtle Storm
Mar 28, 2025 · Fundamentals

Why Python’s join() Beats ‘+’ for Fast String Concatenation

The article explains how Python’s join() method provides O(n) performance for concatenating strings, unlike the ‘+’ operator which creates a new string each time, and demonstrates its usage with lists, tuples, characters, numbers, dictionaries, and custom separators.

JOINPythonconcatenation
0 likes · 7 min read
Why Python’s join() Beats ‘+’ for Fast String Concatenation
Java Captain
Java Captain
May 3, 2018 · Fundamentals

Understanding Java Strings: Creation, Immutability, and Operations

This article explains Java's String class, covering its automatic import, how to create string objects without the new keyword, concatenation, immutability, common methods like replace, and provides useful API references and code examples for practical use.

APIImmutableconcatenation
0 likes · 6 min read
Understanding Java Strings: Creation, Immutability, and Operations