Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. class Main {
  2.   public static void main(String[] args) {
  3.     String keyWord = "word_of_unknown_length";
  4.     int numVowels = numberOfVowels(keyWord);
  5.     System.out.println("There are " + numVowels + " vowels in " + keyword);
  6.   }
  7.  
  8.   //write the method numberOfVowels that computes and returns the number of vowels in a String
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement