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