- public static void main(String[] args) throws InterruptedException, IOException {
- BufferedReader bfr = new BufferedReader(new InputStreamReader(System.in));
- String line = null;
- while((line = bfr.readLine())!="a"){
- System.out.println(line);
-
-
-
- }
- }
复制代码 输入a为什么程序不停止呢 |
|