Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class vowelas {
- static Scanner scan = new Scanner(System.in);
- static String s = scan.next();
- static int x = s.length();
- static int vowels = 0;
- public static void main(String args[]){
- System.out.println(s);
- System.out.println(x);
- System.out.println(vowels);
- }
- public int vowelscounts(int x){
- int count = 0;
- String ssmall = s.toLowerCase();
- for (int z =0; z < s.length(); z++){
- switch (vowelscounts(z)) {
- case 'a':
- case 'e':
- case 'i':
- case 'o':
- case 'u':
- ++ vowels;
- break;
- }
- }
- return vowels;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement