stringbuffer
StringBuffer 和 StringBuilder 类似.
StringBuilder is faster but not thread safe.
StringBuffer is thread safe.
objects of type StringBuffer can be modified again and again.
initialization:
StringBuffer sBuffer = new StringBUffer(“test”);
// append
sBuffer.append(“String Buffer”);
// reverse
sBuffer.reverse()
// delete
sBuffer.delete(int start, int end);
// insert
sBuffer.insert(int offset, int i);
// convert to string
sBuffer.toString();