| Package | Description | 
|---|---|
| java.io | 
 Contains Input/Output streams communication classes. 
 | 
| java.lang | 
 Contains core language classes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
PrintStream | 
PrintStream.append(CharSequence csq)
Appends the specified character sequence to this output stream. 
 | 
Writer | 
Writer.append(CharSequence csq)
Appends 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. 
 | 
Writer | 
Writer.append(CharSequence csq,
      int start,
      int end)
Appends a subsequence of the specified character sequence to this writer. 
 | 
| 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)
Returns a new character sequence that is a subsequence of this sequence. 
 | 
CharSequence | 
StringBuilder.subSequence(int start,
           int end)
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. | 
CharSequence | 
String.subSequence(int beginIndex,
           int endIndex)
Returns a new character sequence that is a subsequence of this sequence. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Appendable | 
Appendable.append(CharSequence csq)
Appends the specified character sequence to this  
Appendable. | 
StringBuffer | 
StringBuffer.append(CharSequence s)
Appends the specified  
CharSequence to this sequence. | 
StringBuilder | 
StringBuilder.append(CharSequence csq)
Appends the specified character sequence to this  
Appendable. | 
Appendable | 
Appendable.append(CharSequence csq,
      int start,
      int end)
Appends a subsequence of the specified character sequence to this  
Appendable. | 
StringBuffer | 
StringBuffer.append(CharSequence s,
      int start,
      int end)
Appends a subsequence of the specified  
CharSequence to this sequence. | 
StringBuilder | 
StringBuilder.append(CharSequence s,
      int start,
      int end)
Appends a subsequence of the specified  
CharSequence to this 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. | 
StringBuffer | 
StringBuffer.insert(int dstOffset,
      CharSequence s)
Inserts the specified  
CharSequence into this sequence. | 
StringBuilder | 
StringBuilder.insert(int dstOffset,
      CharSequence s)
Inserts the specified  
CharSequence into this sequence. | 
StringBuffer | 
StringBuffer.insert(int dstOffset,
      CharSequence s,
      int start,
      int end)
Inserts a subsequence of 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. | 
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. |