Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class vowelsv2 {
  4.  
  5. public static Scanner scan = new Scanner(System.in);
  6. public static String s = scan.nextLine();
  7. public static String ss = s.toLowerCase();
  8.  
  9. public static void main(String []args){
  10. System.out.println(s);
  11. System.out.println(ss);
  12. ss.length();
  13. System.out.println(vowelcounts());
  14. }
  15.  
  16. public static int vowelcounts(){
  17. int vowels = 0;
  18. int count = ss.length();
  19. for(int z = 0; z.charAt <= count; z++){
  20. switch(vowels){
  21. case 'e':
  22. ++vowels;
  23. }
  24. }
  25.  
  26. return vowels;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement