Like to check whether some character equals some character out of an array I defined.
char [] vowels = new char[5];
vowels[0] = ('a');
vowels[1] = ('e');
vowels[2] = ('i');
vowels[3] = ('o');
vowels[4] = ('u');
if (verb.charAt(verb.length()-1)=='s' && !(verb.charAt(verb.length()-1)==vowel))
So this .....==vowel of course isn't the right syntax. I'd say this idea is quite basic and simple to convey in this way, so could someone tell me what is the right syntax for this?
Thanks.