I was trying to write a method named isVowel that returns whether a String is a vowel (a single-letter string containing a, e, i, o, or u, case-insensitively). Meanwhile, find there's a confliction in character and string. Now, what to do? Thank you all.
public static boolean isVowel(String c)
{
String c = Character.toLowerCase(c);
return c=="a"||c=="e"||c=="i"||c=="o"||c=="u";
}
variable c is already defined in method isVowel(String) !!no suitable method found for toLowerCase(String)