For example I know that when checking strings, you can do something like
if (string.matches("a|e|i|o|u|A|E|I|O|U" ) )
{
// Then do this code.
}
but is there a way to check if a char matches a list of possibilities?
or do I have to check one by one, such as
if(char == a || char == e || char == i )
...ect.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…