Convert String to character array

This example shows how to do a String to character array conversion. The String class has a neat method for doing this, toCharArray().
In the code example below the String is converted to a char array and each element of the array is printed out.

The output from the executed code:

Search for more Java info on this site here:
Custom Search

Please type any questions here.