Package | Description |
---|---|
java.lang |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
StringBuilder.append(boolean b)
Appends the string representation of the boolean argument to the sequence.
|
StringBuilder |
StringBuilder.append(char c) |
StringBuilder |
StringBuilder.append(char[] str)
Appends the string representation of the char array argument to this
sequence.
|
StringBuilder |
StringBuilder.append(char[] str,
int offset,
int len)
Appends the string representation of a subarray of the
char array argument to this
sequence. |
StringBuilder |
StringBuilder.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
StringBuilder |
StringBuilder.append(CharSequence s,
int start,
int end)
Appends a subsequence of the specified
CharSequence to this sequence. |
StringBuilder |
StringBuilder.append(double d)
Appends the string representation of the double argument to this sequence.
|
StringBuilder |
StringBuilder.append(float f)
Appends the string representation of the float argument to this sequence.
|
StringBuilder |
StringBuilder.append(int i)
Appends the string representation of the int argument to this sequence.
|
StringBuilder |
StringBuilder.append(long lng)
Appends the string representation of the long argument to this sequence.
|
StringBuilder |
StringBuilder.append(Object obj)
Appends the string representation of the Object argument.
|
StringBuilder |
StringBuilder.append(String str)
Appends the specified string to this character sequence.
|
StringBuilder |
StringBuilder.append(StringBuffer sb)
Appends the specified StringBuffer to this sequence.
|
StringBuilder |
StringBuilder.delete(int start,
int end)
Removes the characters in a substring of this sequence.
|
StringBuilder |
StringBuilder.deleteCharAt(int index)
Removes the
char at the specified position in this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
boolean b)
Inserts the string representation of the
boolean argument into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
char c)
Inserts the string representation of the
char argument into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
char[] str)
Inserts the string representation of the
char array argument into this sequence. |
StringBuilder |
StringBuilder.insert(int index,
char[] str,
int offset,
int len)
Inserts the string representation of a subarray of the
str array argument into this
sequence. |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s)
Inserts the specified
CharSequence into this sequence. |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s,
int start,
int end)
Inserts a subsequence of the specified
CharSequence into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
double d)
Inserts the string representation of the
double argument into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
float f)
Inserts the string representation of the
float argument into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
int i)
Inserts the string representation of the second
int argument into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
long l)
Inserts the string representation of the
long argument into this sequence. |
StringBuilder |
StringBuilder.insert(int offset,
Object obj)
Inserts the string representation of the
Object argument into this character sequence. |
StringBuilder |
StringBuilder.insert(int offset,
String str)
Inserts the string into this character sequence.
|
StringBuilder |
StringBuilder.replace(int start,
int end,
String str)
Replaces the characters in a substring of this sequence with characters in the specified
String . |
StringBuilder |
StringBuilder.reverse()
Causes this character sequence to be replaced by the reverse of the sequence.
|
Constructor and Description |
---|
String(StringBuilder builder)
Allocates a new string that contains the sequence of characters currently contained in the string
builder argument.
|