Returns the amount of storage available in the specified string buffer object.
Syntax
capacity( stringbuffer )
stringbuffer.capacity( )
Parameters
stringbuffer
|
the stringbuffer object to use.
|
Returns
number
|
the amount of storage available.
|
Example
sb = StringBuffer( )
println( sb.capacity( ) )
|