I have a small problem here.I need to convert a string read from console into each character of string. For example string: \"aabbab\" I want to this string into array of st
Use toCharArray() method. It splits the string into an array of characters:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#toCharArray%28%29
String str = "aabbab"; char[] chs = str.toCharArray();