Question: Java 8 2 Create a method called countVowels that counts how many vowels are in a String 3-(for the purposes of this assignment, include all

Java 8  Java 8 2 Create a method called countVowels that counts how

2 Create a method called countVowels that counts how many vowels are in a String 3-(for the purposes of this assignment, include all instances of the letters ae 4u', and y' in your count) 5 Your method will take one parameter (the String who's vowels are to be counted) 6 and will not return anything (your return type should be "void"). 7This means you will output from within your method. 10 import java.util. 11 public class CountingVowels 12 13 14 15. 16 17 18 19 //Do not change my code in main public static void main(String[] args) Scanner kb new Scanner (System.in); System.out.print("Please enter a word or phrase: ") String input kb.nextline(); System.out.println(O 21 countVowels(input); 23 25 I/Write your method here 26

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!