public class MyClass {
private static String remove_vowels(String str) {
return str.replaceAll("[aeiouAEIOU]", "");
}
public static void main(String args[]) {
String s = "C++ PHP Java Python VB.NET Rust";
System.out.print(remove_vowels(s));
}
}
/*
run:
C++ PHP Jv Pythn VB.NT Rst
*/