while(c!= '/r'){ try { c = (char)System.in.read(); } catch(IOException e) { e.getMessage(); } } 读取到回车截止