| Package | Description |
|---|---|
| java.io | |
| java.lang |
| Modifier and Type | Method and Description |
|---|---|
StringWriter |
StringWriter.append(CharSequence csq) |
StringWriter |
StringWriter.append(CharSequence csq,
int start,
int end) |
| Modifier and Type | Class and Description |
|---|---|
class |
String
The String class represents character strings.
|
class |
StringBuffer
A string buffer implements a mutable sequence of characters.
|
class |
StringBuilder
A string builder implements a mutable sequence of characters.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
StringBuilder.subSequence(int start,
int end) |
CharSequence |
StringBuffer.subSequence(int start,
int end) |
CharSequence |
String.subSequence(int start,
int end) |
CharSequence |
CharSequence.subSequence(int start,
int end)
Returns a
CharSequence from the start index (inclusive)
to the end index (exclusive) of this sequence. |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
StringBuilder.append(CharSequence cs) |
StringBuffer |
StringBuffer.append(CharSequence cs) |
Appendable |
Appendable.append(CharSequence csq)
Appends the character sequence
csq. |
StringBuilder |
StringBuilder.append(CharSequence cs,
int start,
int end) |
StringBuffer |
StringBuffer.append(CharSequence cs,
int start,
int end) |
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of
csq. |
static int |
Character.codePointAt(CharSequence seq,
int index)
Returns the code point at the index in the
CharSequence. |
static int |
Character.codePointBefore(CharSequence seq,
int index)
Returns the Unicode code point that proceeds the
index in
the CharSequence. |
static int |
Character.codePointCount(CharSequence seq,
int beginIndex,
int endIndex)
Counts the number of Unicode code points in the subsequence of the
CharSequence, as delineated by the
beginIndex and endIndex. |
boolean |
String.contains(CharSequence seq)
Checks if string contains the given char sequence.
|
boolean |
String.contentEquals(CharSequence cs) |
StringBuilder |
StringBuilder.insert(int offset,
CharSequence cs) |
StringBuffer |
StringBuffer.insert(int offset,
CharSequence cs) |
StringBuilder |
StringBuilder.insert(int offset,
CharSequence cs,
int start,
int end) |
StringBuffer |
StringBuffer.insert(int offset,
CharSequence cs,
int start,
int end) |
static int |
Character.offsetByCodePoints(CharSequence seq,
int index,
int codePointOffset)
Determines the index into the
CharSequence that is offset
(measured in code points and specified by codePointOffset),
from the index argument. |
StringBuffer |
StringBuffer.StringBuffer(CharSequence cs) |
| Constructor and Description |
|---|
StringBuilder(CharSequence cs) |
Copyright © 2024. All rights reserved.