The
setLength() method of StringBuffer class changes the length of the StringBuffer object to a specified length.
Syntax of setLength method is:public void setLength(int newLength)
StringBuffersetLength CODE class SetLengthDemo OUTPUT Java Programming DESCRIPTION Initially the length was THINGS TO TRY
|