Class StringBuffer: Selected Methods


 o public int length()
Returns the length (character count) of this string buffer.
 o public synchronized char charAt(int)
Returns the character at a specific index in this string buffer.
 o public synchronized StringBuffer append(String text)
Appends the string to this string buffer. Also for all elementary datatypes such as int and double.
 o public synchronized StringBuffer insert(int, String)
Inserts the string into this string buffer. Also for all elementary datatypes such as int and double.
 o public synchronized StringBuffer reverse()
The character sequence contained in this string buffer is replaced by the reverse of the sequence.
 o public String toString()
Converts to a string representing the data in this string buffer.

Java Tutorial - Standard Classes Jens Trapp, 1997