char x;
try{
System.out.println("please input a char:");
x=(char)System.in.read();
System.out.println("x="+x);
}catch(Exception ee){
System.out.println(ee.toString());
}
try{
System.out.println("please input a char:");
x=(char)System.in.read();
System.out.println("x="+x);
}catch(Exception ee){
System.out.println(ee.toString());
}
try{
System.out.println("please input a char:");
x=(char)System.in.read();
System.out.println("x="+x);
}catch(Exception ee){
System.out.println(ee.toString());
}
试试吧,看行不行