❮ String Methods
charDefinition and Usage
The toCharArray() method returns a new char array representing the contents of the string.
Syntax
public char[] toCharArray()Technical Details
| Java version: | Any |
|---|
Loading lesson path
❮ String Methods
charThe toCharArray() method returns a new char array representing the contents of the string.
Syntax
public char[] toCharArray()| Java version: | Any |
|---|