| Package | Description |
|---|---|
| java.lang |
| Modifier and Type | Class and Description |
|---|---|
class |
String
The
String class represents character strings. |
class |
StringBuffer
A thread-safe, mutable sequence of characters.
|
class |
StringBuilder
A mutable sequence of characters.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
StringBuffer.subSequence(int start,
int end) |
CharSequence |
String.subSequence(int beginIndex,
int endIndex)
Returns a new character sequence that is a subsequence of this sequence.
|
CharSequence |
CharSequence.subSequence(int start,
int end)
Returns a
CharSequence that is a subsequence of this sequence. |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
StringBuilder.append(CharSequence s) |
StringBuffer |
StringBuffer.append(CharSequence s)
Appends the specified
CharSequence to this
sequence. |
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
StringBuilder |
StringBuilder.append(CharSequence s,
int start,
int end) |
StringBuffer |
StringBuffer.append(CharSequence s,
int start,
int end) |
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this
Appendable.
|
static int |
Character.codePointAt(CharSequence seq,
int index)
Returns the code point at the given index of the
CharSequence. |
static int |
Character.codePointBefore(CharSequence seq,
int index)
Returns the code point preceding the given index of the
CharSequence. |
static int |
Character.codePointCount(CharSequence seq,
int beginIndex,
int endIndex)
Returns the number of Unicode code points in the text range of
the specified char sequence.
|
boolean |
String.contains(CharSequence s)
Returns true if and only if this string contains the specified
sequence of char values.
|
boolean |
String.contentEquals(CharSequence cs)
Compares this string to the specified
CharSequence. |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s) |
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s) |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s,
int start,
int end) |
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s,
int start,
int end) |
static int |
Character.offsetByCodePoints(CharSequence seq,
int index,
int codePointOffset)
Returns the index within the given char sequence that is offset
from the given
index by codePointOffset
code points. |
String |
String.replace(CharSequence target,
CharSequence replacement)
Replaces each substring of this string that matches the literal target
sequence with the specified literal replacement sequence.
|
| Constructor and Description |
|---|
StringBuffer(CharSequence seq)
Constructs a string buffer that contains the same characters
as the specified
CharSequence. |
StringBuilder(CharSequence seq)
Constructs a string builder that contains the same characters
as the specified
CharSequence. |
Copyright © 2025 API Design. All Rights Reserved.