Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- public static void main(String[] args) {
- String keyWord = "word_of_unknown_length";
- int numVowels = numberOfVowels(keyWord);
- System.out.println("There are " + numVowels + " vowels in " + keyword);
- }
- //write the method numberOfVowels that computes and returns the number of vowels in a String
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement