BufferedReaderDemo.java

import java.io.*;

 

public class BufferedReaderDemo{

  public static void main(String [] args)throws IOExcepion{

    BufferedReader bufferReader=new BufferedReader(new InputStreamReader  (System.in));

 

    System.out.print("请输入一列文字,可能包括空白:");

    String text=bufferedReader.readLine();

    System.out.println("您输入的文字: "+text);

  }

}

你可能感兴趣的:(BufferedReaderDemo.java)