- import java.io.*;
- public class AAA {
- /**
- * @param args
- * @throws IOException
- */
- public static void main(String[] args) throws IOException {
- // TODO Auto-generated method stub
- InputStream is=System.in;
- 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(str.equals("over"))
- break;
- bw.write(str);
- bw.newLine();
- bw.flush();
- }
- br.close();
- bw.close();
- }
- }
复制代码
输入字母和数字都没问题 但是一输入汉字就开始出错 为什么! |