Assignment 10 Solution



Submit the java file named with the static method named numOfVowels such that

  • The method takes only a single parameter: a string

  • The method returns an int -> the number of vowels in the parameter (ignoring ‘y’)

  • There are no variables defined outside of a method.

  • numOfVowels is recursive

Note that the marks are only added if your solution is recursive.

error: Content is protected !!