这与C和C++有所不同
import java.util.*; Scanner in=new Scanner(System.in); char select= in.next().charAt(0); switch(select) { case 'A': case 'a': ... }