Java program to delete vowels in a given string


Program

package com.candidjava;

public class RemoveAllVovels {

	public static void main(String[] args) {
		String string = "Welcome to Candid Java Programming";
		System.out.println("Input String : "+string);
		string = string.replaceAll("[AaEeIiOoUu]", "");
		System.out.println(string);
	}
}


Output

Input String : Welcome to Candid Java Programming

Wlcm t Cndd Jv Prgrmmng




Related Post

Comments


©candidjava.com