Is there any function to do this kind of job or do one have to parse each char and add it to the array?
Use String#toCharArray()
.
char[] chars = "some string".toCharArray();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With