
how do u encryp vowels from given wordes?

import java.util.*;
class EncryptVowels
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
System.out.println("Enter String:");
String st = input.nextLine();
StringBuffer buffer=new StringBuffer();
buffer.append(st.replaceAll("[aeiou](?!\\b)", "*"));
System.out.println(buffer.toString());
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.