- import java.io.*;
- class TransStreamDemo123
- {
- public static void main(String[] args) throws IOException
- {
- InputStream in = System.in;
- InputStreamReader isr = new InputStreamReader(in);
- BufferedReader bufr = new BufferedReader(isr);
- String line =null;
- while ((line=bufr.readLine())!=null)
- {
- if ("over".equals(line))
- {
- break;
- }
- System.out.println(line.toUpperCase());
- }
- bufr.close();
- }
- }
复制代码 为什么呀,我检查了很多遍,为什么错误吧!!??
错误提示如下:
|
|