JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
Author: LukArToDo
Created: 05.feb 2018
Bugs: unknown
Description: The code replace all vowels acorrdong next rule:
vowel = "f" + vowel
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
ENTER A STRING ✔️press submit
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
*/
import java.util.*;
public class ReplaceWithF_{
public static void main(String...F_) {
Arrays.stream(new Scanner(System.in).nextLine().split("(?<=(?i)[aeuio])")).forEach(w->System. out.print(w.replaceAll("((?i)[aeuio])\\b","$1f$1")));
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run