Frage im Vorstellungsgespräch bei 84.51°

Write a simple Java code to remove all vowels from a string.

Antwort im Vorstellungsgespräch

Anonym

14. Okt. 2016

public class RemoveVowels { public static void main(String[] args) { String str = "RemoveVowels"; String output = str.replaceAll("[aeiouAEIOU]", ""); System.out.println(output); } }