Write a recursive method that counts the number of vowels in astring. It must return the number of vowels. Use appropriateparameters as needed. Hint: There’s an ArrayList method calledcontains that might make checking whether a character is a voweleasier
Expert Answer
Answer to Write a recursive method that counts the number of vowels in a string. It must return the number of vowels. Use appropri…