Skip to content

Blog

Production error deep-dives — root cause, reproduction, and the fix that holds.

Members only

How Strings Are Used In Collections?

See how Java strings are used in collections: why they work so well as map keys and list values, and what to keep in mind when you store them in practice.

Members only

StringBuilder vs. StringBuffer, Thread Safety

StringBuilder vs StringBuffer in Java: how they differ, which one is thread-safe, and how to choose the right class when your code builds strings.

Members only

Performance Comparison Of StringBuilder vs. String Concatenation

Compare the performance of StringBuilder and string concatenation in Java, and learn when each is the right choice for building strings in your own code.

Members only

String, StringBuilder, and StringBuffer in Java

String, StringBuilder and StringBuffer in Java compared: mutability, thread safety and performance, and how to choose the right class for each situation.

Members only

Understanding String Immutability

Understand why Java strings are immutable: what immutability means, how it works in practice and what it changes about the way you write Java string code.

Members only

Number Formatting in Java

Learn number formatting in Java: how to display numbers the way you want, including decimals, separators and alignment, with practical examples to follow.

Members only

Parsing Strings To Primitive Types in Java

Learn how to parse Java strings into primitive types such as int, long, double and boolean, with examples and what happens when the input is not valid.

Members only

String Formatting in Java (%s, %d, %f)

Learn Java string formatting with the %s, %d and %f specifiers: how to insert strings, integers and decimals into text, with practical examples of each.

Members only

Java Strings Trimming, Replacing, and Splitting

Learn how to trim, replace and split Java strings: remove extra whitespace, swap out characters and break text into parts with the standard String methods.

Members only

String Searching and Indexing in Java

Learn how to search and index Java strings: find characters and substrings, check where they appear and read positions with the standard String methods.