Whats the best way to acheive something like: if (nChar == 'a' || 'e' || 'i' || 'o' || 'u')
That throws an error as || cant be used with boolean or char types. However, shouldnt 'a' give you the integer value of a ?
So if i do: int nChar = text.charAt(i); if (nChar == 'a' || 'e' || 'i' || 'o' || 'u') {} i should be evaluating two integers, yet it still doesnt work.
The other options i can think of are nested if statements *yuck* or to use switch, but im more interested why the simple if or statement wont work.
Jaz
Start Free Trial