Question: This attempted solution to Self-Check 5.15 (isvowe1) has several problems: // Returns whether the given string represents a vowel: // a, e, i, , oru,

This attempted solution to Self-Check 5.15 (isvowe1) has several problems: // Returns whether the given string represents a vowel: // a, e, i, , oru, case insensitively. public static boolean isVowel (String s) if (s -"a") return true; else if (s "e") return true; } else if (s -- "i") return true; } else if (s -- "o") return true; else if (s -"u") return true; else return false; Exercise - things to fix Fix the following aspects of the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
