Skip to content

Glossary: Data Structures and Algorithms in Java

StringBuilder

A text buffer you can change. Appending is O(1) on average, so it is the fast way to build long text instead of `+=` on an immutable String.

Where the book teaches it

Related terms

immutable