Created
December 1, 2023 03:39
-
-
Save rafirh/c63f50ad879f1c749d4908ef1a9f6ccf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
String kalimat = scanner.nextLine(); | |
String hasil = removeVowels(kalimat); | |
System.out.println(hasil); | |
} | |
private static String removeVowels(String kalimat) { | |
return kalimat.replaceAll("[aiueoAIUEO]", ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment