The length is the character count of the sequence of characters currently represented by
StringBuffer . The capacity is the amount of storage available for newly inserted characters, beyond which an allocation will occur.
StringBuffer Methods:
StringBufferDemo1 CODE class StringBufferDemo1 OUTPUT empty capacity = 16 DESCRIPTION First the capacity and length of an empty THINGS TO TRY
|