Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Method and Description |
---|---|
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence csq)
Appends the specified character sequence to this output stream.
|
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this output
stream.
|
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 new
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.
|
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) |
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 (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.