集合运算
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = "AEIOUaeiou"; while(sc.hasNext()){ String c = sc.nextLine(); if(s.contains(c)) System.out.println("Vowel"); else System.out.println("Consonant"); } } }