本帖最后由 德胜 于 2015-9-16 09:33 编辑
大家帮看看哪有没有错?谢谢、public class SystemIn
{
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw =
new BufferedWriter(new OutoutStreamWriter(System.out));
String line = null;
while((line=br.readLine()!=null))
{
if("over"equals(line))
break;
bw.write(line.toUpperCase());
bw.newLine();
bw.close();
}
br.close();
}
|
|