+ 2
how to print a word letter by letter, and that when a vowel is identified, an asterisk is printed instead of it?
3 ответов
+ 2
String string = "hello";
string = string.replaceAll("[aeiouAEIOU]", "*");
for(char c : string.toCharArray()){
System.out.println(c);
}
+ 1
you could make an array and use an if statement to replace the vowel.
what language are you using?
+ 1
java