help
package com.codegym.task.task09.task0923;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Vowels and consonants
*/
public class Solution {
public static char[] vowels = new char[]{'a', 'e', 'i', 'o', 'u'};
public static void main(String[] args) throws Exception {
// write your code here
BufferedReader bufferedReader= new BufferedReader(new InputStreamReader(System.in));
String word=bufferedReader.readLine();
ArrayList<Character> characterArrayList= new ArrayList<>();
for (int i=0;i<word.length();i++){
characterArrayList.add(word.charAt(i));
}
for (int i=0;i<characterArrayList.size();i++) {
if (isVowel(characterArrayList.get(i))) {
System.out.print(characterArrayList.get(i)+" ");
}
else
System.out.print(characterArrayList.get(i)+" ");
}
}
// The method checks whether a letter is a vowel
public static boolean isVowel(char c) {
c = Character.toLowerCase(c); // Convert to lowercase
for (char d : vowels) // Look for vowels in the array
{
if (c == d)
return true;
}
return false;
}
}