本帖最后由 李计伟 于 2012-11-13 20:46 编辑
- public class Statistics {
- public static void main(String[] args) throws IOException {
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
- String str = null;
- while((str = br.readLine())!=null){
- if("0".equals(str)){
- System.out.println("程序退出");
- break;
- }
- bw.write(str);
- bw.newLine();
- bw.flush();
- }
- bw.close();
- br.close();
- }
- }
复制代码 用Eclipse为什么输入时光标始终在前面,怎么调哇.用windows 命令行光标就一直在后面. |
|