Tag: setlength java

setLength() StringBuffer Example

December 3, 2014 · 2 min read
###### setLength() StringBuffer method sets the number of characters that can exist in the buffer. Must be careful in the usage: if the setLengtgh() is set with less size of number of characters, the extra characters in the buffer will be truncated off.