Scanner如何接受char类型的数据 Scanner sc=new Scanner(System.in); char t =sc.next().charAt(0); System.out.println(t);