public class Vowels {
public static void main(String[] args) {
char []a={'a','e','i','o','u','e'};
String line="abcee";
for (char c : a) {
for (int i = 0; i < a.length; i++) {
if (line.charAt(i)==c) {
line=line.substring(0, i)+line.substring(i+1);
}
}
}
System.out.println(line);
}
}
whats wrong with this code more than same vowels not removed.