+ 5
How to convert string to array & array to string?
Related to usually asked questions in written test before interview.
3 Réponses
+ 3
You can easily convert string into char array using:
<string>.toCharArray()
And convert char array to string:
String.join(<char array>)
+ 1
In C, a string is a char array, no need for conversion AFAIK.
0
In Java you can use the (toCharArray()) method from the String class