Is there any function to do this kind of job or do one have to parse each char and add it to the array?
4 Answers
Use String#toCharArray().
char[] chars = "some string".toCharArray();
1 Comment
Sean Patrick Floyd
Damn! 14 seconds! +1 because I don't want to be a sore loser :-)