First you have to define the arrayList and then iterate over the string and create a variable to hold the char at each point within the string. then you just use the add command. You will have to import the arraylist utility though.
String string = "AEIOU";
ArrayList<char> arrayList = new ArrayList<char>();
for (int i = 0; i < string.length; i++)
{
char c = string.charAt(i);
arrayList.add(c);
}
The import statement looks like : import java.util.ArrayList;
To set it as a string arrayList all you have to do is convert the char variables we gave you and convert it back to a string then add it: (And import the above statement)
ArrayList<String> arrayList = new ArrayList<String>();
String string = "AEIOU"
for (int i = 0; i < string.length; i++)
{
char c = string.charAt(i);
String answer = Character.toString(c);
arrayList.add(answer);
}
charfrom a String?