Package java.lang
Class StringBuffer
StringBuffer()
StringBuffer(int length)
Throws:
StringBuffer(String str)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
constructor StringBuffer():
Constructs a string buffer with no characters in it and an initial capacity of 16 characters.
constructor StringBuffer(int length):
Constructs a string buffer with no characters in it and the specified initial capacity.
constructor StringBuffer(String str):
Constructs a string buffer initialized to the contents of the specified string.
Note that Unicode symbols whose UTF8 code need more than one byte will occupy more than one entry in the string buffer.
Example
StringBuffer strBuffer = new StringBuffer("ä∀"); // buffer: [(0xC3 0xA4) (0xE2 0x88 0x80)]