Share via


StringBuffer.toString

Class Overview | Class Members | This Package | All Packages

Syntax

public String toString()

Returns

a string representation of the string buffer.

Description

Converts to a string representing the data in this string buffer. A new String object is allocated and initialized to contain the character sequence currently represented by this string buffer. This String is then returned. Subsequent changes to the string buffer do not affect the contents of the String.

Overrides

toString in class Object