Question d’entretien chez 84.51°

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

Réponse à la question d'entretien

Utilisateur anonyme

14 oct. 2016

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