import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOException;public class Day25_7{ public static void main(String[] args)throws IOException{ //字节输入流转化字符输入流 //InputStreamReader insR=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); //字节输出流转化字符输出流 //OutputStreamWriter outsR=new OutputStreamWriter(System.out); BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out)); while(true){ //读取一行字符串 String str=br.readLine(); str=str.toUpperCase(); //写出字符串。 bw.write(str); //换行(跨平台) bw.newLine(); //刷新缓冲区,否则字符串不打印 bw.flush(); } br.close(); bw.close(); }}
小唯快跑啊