Share via


StringBuffer.capacity

Class Overview | Class Members | This Package | All Packages

Syntax

public int capacity()

Returns

the current capacity of this string buffer.

Description

Returns the current capacity of the String buffer. The capacity is the amount of storage available for newly inserted characters; beyond which an allocation will occur.