public static boolean isVowel (char c){
return "A,a,E,e,I,i,O,o,U,u".indexOf(c) != -1;
}
Can u guys explain the whole concept of this code? what does public static boolean isvowel do? what does return do? and what does .indexOf(c) do and mean? and why use a -1 there? thanks for the help