Uses of Class java.lang.StringBuilder (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
java.lang.StringBuilder

- Packages that use StringBuilder
  Package | Description
  --- | ---
  java.lang | Provides classes that are fundamental to the design of the Java programming language.

- - ### Uses of StringBuilder in java.lang

    Methods in java.lang that return StringBuilder
    Modifier and Type | Method and Description
    --- | ---
    `StringBuilder` | StringBuilder.`append(boolean b)`
    `StringBuilder` | StringBuilder.`append(char c)`
    `StringBuilder` | StringBuilder.`append(char[] str)`
    `StringBuilder` | StringBuilder.`append(char[] str, int offset, int len)`
    `StringBuilder` | StringBuilder.`append(CharSequence s)`
    `StringBuilder` | StringBuilder.`append(CharSequence s, int start, int end)`
    `StringBuilder` | StringBuilder.`append(double d)`
    `StringBuilder` | StringBuilder.`append(float f)`
    `StringBuilder` | StringBuilder.`append(int i)`
    `StringBuilder` | StringBuilder.`append(long lng)`
    `StringBuilder` | StringBuilder.`append(Object obj)`
    `StringBuilder` | StringBuilder.`append(String str)`
    `StringBuilder` | StringBuilder.`append(StringBuffer sb)` Appends the specified `StringBuffer` to this sequence.
    `StringBuilder` | StringBuilder.`appendCodePoint(int codePoint)`
    `StringBuilder` | StringBuilder.`delete(int start, int end)`
    `StringBuilder` | StringBuilder.`deleteCharAt(int index)`
    `StringBuilder` | StringBuilder.`insert(int offset, boolean b)`
    `StringBuilder` | StringBuilder.`insert(int offset, char c)`
    `StringBuilder` | StringBuilder.`insert(int offset, char[] str)`
    `StringBuilder` | StringBuilder.`insert(int index, char[] str, int offset, int len)`
    `StringBuilder` | StringBuilder.`insert(int dstOffset, CharSequence s)`
    `StringBuilder` | StringBuilder.`insert(int dstOffset, CharSequence s, int start, int end)`
    `StringBuilder` | StringBuilder.`insert(int offset, double d)`
    `StringBuilder` | StringBuilder.`insert(int offset, float f)`
    `StringBuilder` | StringBuilder.`insert(int offset, int i)`
    `StringBuilder` | StringBuilder.`insert(int offset, long l)`
    `StringBuilder` | StringBuilder.`insert(int offset, Object obj)`
    `StringBuilder` | StringBuilder.`insert(int offset, String str)`
    `StringBuilder` | StringBuilder.`replace(int start, int end, String str)`
    `StringBuilder` | StringBuilder.`reverse()`

    Constructors in java.lang with parameters of type StringBuilder
    Constructor and Description
    `String(StringBuilder builder)` Allocates a new string that contains the sequence of characters currently contained in the string builder argument.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.