bufferedreader br =new bufferedreader(new InputStreamReader(System.in));
bufferedWriter bw=new bufferedWriter(new OutputStreamWriter(System.out));
String line=null;
while((line=br.readLine())!=null)
{
if("over".equals(line))
break;
br.writer(line.toUpperCase())
}
br.close();
在这段代码中我输入 代码 并结束 怎么不显示大写啊 我以前试过可以的呀 |