fork(1) download
  1. import java.util.*;
  2. class Ideone {
  3. public static void main (String[] args){
  4. String s=new Scanner(System.in).nextLine().toLowerCase();
  5. int t = s.length(),
  6. c = s.replaceAll("a|e|i|o|u", "").length();
  7. System.out.printf("Let=%d,Cons=%d,Vog:%d",t,c,t-c);
  8. }
  9. }
Success #stdin #stdout 0.14s 321280KB
stdin
WEBCHEATS
stdout
Let=9,Cons=6,Vog:3