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
You can use String.split(String regex):
String input = "aabbab"; String[] parts = input.split("(?!^)");