charat in arraylist in java
int [] vowelInt = new int [5];
for (int i = 0; i<vowels.size(); i++) {
String word =(String) vowels.get(i);//try like this
char letter=word.charAt(0); //return method to a dynamic array.
if(letter=='a') {
vowelInt[0]++;
} else if (letter == 'e') {
vowelInt[1]++;
} else if (letter == 'i') {
vowelInt[2]++;
} else if (letter == 'o') {
vowelInt[3]++;
} else if (letter == 'u') {
vowelInt[4]++;
}