How do you seperate a string such as "ABCDEFG" in to "A","B" etc and store each letter as a character, i know you can seperate the string as follows:
String s="ABCD";
String s1= s.substring(0,1);
String s2= s.substring(1,2);
//etc..
//and you have
s1=A
s2=B
//etc
but how do you store them as chars?????
thank you in advance
String s="ABCD";
String s1= s.substring(0,1);
String s2= s.substring(1,2);
//etc..
//and you have
s1=A
s2=B
//etc
but how do you store them as chars?????
thank you in advance