import java.util.Scanner; public class Main { public static void main(String[] args) { int x,n; String s; char ch; Scanner sc=new Scanner(System.in); System.out.println("Enter String :"); s=sc.nextLine(); n=s.length(); for(x=0;x<n;x++) { ch=s.charAt(x); if(ch=='a'|| ch=='e' || ch=='i'|| ch=='o'||ch=='u' || ch=='A'|| ch=='E' || ch=='I'|| ch=='O'||ch=='U') { continue; } System.out.print(ch); } } }
Enter String : Sateesh
stsh