import java.io.*;
public class BufferedReaderDemo {
public static void main(String[] args) throws IOException {
BufferedReader buffereReader =
new bufferedReader(
new InputStreamReader(System.in));
System.out.print("请输入一列文字,可包括空白:");
String text = bufferedReader.readLine();
System.out.println("您输入的文字:"+text);
}
}
[此贴子已经被作者于2007-3-12 18:10:02编辑过]