Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
StringBuilder.append(boolean value)
Adds the string representation of the specified boolean to the
end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(char ch)
Adds the specified character to the end of
this StringBuilder.
|
StringBuilder |
StringBuilder.append(char[] chars)
Adds the character array to the end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(char[] chars,
int start,
int length)
Adds the specified sequence of characters to the end of
this StringBuilder.
|
StringBuilder |
StringBuilder.append(CharSequence sequence)
Adds the specified CharSequence to the end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(CharSequence sequence,
int start,
int end)
Adds the specified CharSequence to the end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(double value)
Adds the string representation of the specified double to the
end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(float value)
Adds the string representation of the specified float to the
end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(int value)
Adds the string representation of the specified integer to the
end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(long value)
Adds the string representation of the specified long to the
end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(Object value)
Adds the string representation of the specified object to the
end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(String string)
Adds the specified string to the end of this StringBuilder.
|
StringBuilder |
StringBuilder.append(StringBuffer buffer)
Adds the specified StringBuffer to the end of this StringBuilder.
|
StringBuilder |
StringBuilder.appendCodePoint(int codePoint)
Adds the specified code point to the end of this StringBuilder.
|
StringBuilder |
StringBuilder.delete(int start,
int end)
Deletes a range of characters starting from offset
start to offset
end - 1 . |
StringBuilder |
StringBuilder.deleteCharAt(int location)
Deletes a single character
|
StringBuilder |
StringBuilder.insert(int index,
boolean value)
Inserts the string representation of the specified boolean at the specified
offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
char ch)
Inserts the character at the specified offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
char[] chars)
Inserts the character array at the specified offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
char[] chars,
int start,
int length)
Inserts the specified sequence of characters at the
specified offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
CharSequence sequence)
Inserts the CharSequence at the specified offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
CharSequence sequence,
int start,
int end)
Inserts the CharSequence at the specified offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
double value)
Inserts the string representation of the specified double at the specified
offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
float value)
Inserts the string representation of the specified float at the specified
offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
int value)
Inserts the string representation of the specified integer at the specified
offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
long value)
Inserts the string representation of the specified long at the specified
offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
Object value)
Inserts the string representation of the specified object at the specified
offset in this StringBuilder.
|
StringBuilder |
StringBuilder.insert(int index,
String string)
Inserts the string at the specified offset in this StringBuilder.
|
StringBuilder |
StringBuilder.replace(int start,
int end,
String string)
Replace a range of characters with the characters in the specified String.
|
StringBuilder |
StringBuilder.reverse()
Reverses the order of characters in this StringBuilder.
|
Constructor and Description |
---|
String(StringBuilder builder)
Creates a string from the contents of a StringBuilder.
|
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.