String Character Extraction toCharArray() method in Java?
Java String Handling
The String Character Extraction: toCharArray() method It is used to convert all the characters in a String object into a character array by using toCharArray() method. It returns an array of characters for the entire string.
/* Syntax:*/
char[] toCharArray()