Answers for "replace vowels with x in java"

0

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
      
   }

}
Posted by: Guest on July-28-2021
0

replace vowels with x in java

Input String : The quick brown fox jumps over the lazy dog
Thx qxxck brxwn fxx jxmps xvxr thx lxzy dxg
Posted by: Guest on July-28-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language