Question: Write a recursive method called noVowels that takes a String as an argument and returns true if the String does not contain any 'a', 'e',

Write a recursive method called noVowels that takes a String as an argument and returns true if the String does not contain any 'a', 'e', 'i', 'o', or 'u' characters, false if it contains at least one of these characters. Identify your base case and your general case. You may assume that the input String will never be allowed to be null. Use the following method signature:

public static boolean noVowels(String str) 

HINT: You will want to use the substr method to make your problem a little smaller. Think about how you can break this problem up into smaller problems.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!