Question: public class String Methods { // Constants /** */ String of vowels. public static final String VOWELS = aeiouAEIOU; /** * Counts the number
public class String Methods { // Constants /** */ String of vowels. public static final String VOWELS = "aeiouAEIOU"; /** * Counts the number of vowels in a string. Does not include 'y'. * * @param string A string. * @return Number of vowels in string. */ public static int vowelCount (final String string) { int count = 0; // your code here return count; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
