Splitting a String
Does java have a function that can split the string into an array where each element is a character of that string so like
"abc" ->  => a  => b  => c ?
I looked at the split function, but that seems to need something to seperate by like a comma.
I was thinking doing a for loop like:
String myString = "abc";
int len = length(myString);
for(i=0; i<=len; i++)
b = myString.substring(i, i+1)
Im sure that this is prolly not the right syntax though, that is mostly what I am having trouble with because I've already worked a lot with php and am trying to learn java.
There is a method in the string class to do exactly what you want.
char charArray = someString.toCharArray();