How to convert String to Char Array in java

Java String’s toCharArray() method can be used to convert String to char Array in java. It is simplest method to convert String to char Array.

Example:

When you run above program, you will get below output:

Other String Programs are :

String :

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *