There are several ways to convert a string to an array, with the simplest being the toCharArray()
method.
Convert a string into a char array:
// Create a string // Print the first element of the array |
You can also iterate through the array to print all its elements:
// Create a string // Print array elements
|