Your cart is currently empty!
Submit the java file named Vowels.java 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…
Submit the java file named Vowels.java 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.