Share via


String.toCharArray

Class Overview | Class Members | This Package | All Packages

Syntax

public char[] toCharArray()

Returns

a newly allocated character array whose length is the length of this string and whose contents are initialized to contain the character sequence represented by this string.

Description

Converts this string to a new character array.