Program to remove vowels from a String | Java program to remove vowels from a String ; Driver Code
import java . util . Arrays ; import java . util . List ; class GFG { static String remVowel ( String str ) { return str . replaceAll ( " [ aeiouAEIOU ] " , " " ) ; } public static void main ( String [ ] args ) { String str = " GeeeksforGeeks ▁ - ▁ A ▁ Computer ▁ Science ▁ Portal ▁ for ▁ Geeks " ; System . out . println ( remVowel ( str ) ) ; } }