replace vowels with x in java
package String; public class VowelswithStar { public static void main(String[] args) { String string = "Welcome to Candid Java Programming"; //Input String System.out.println("Input String : "+string); //Displaying Input String string = string.replaceAll("[aeiou]", "x"); //Replace vowels with star System.out.println(string); //Display the word after replacement } }