java字符串输入输出
如何用最简单的语句实现一个字符串的输入输出?
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Test
{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.println("please intput line:");
System.out.println(bf.readLine());
}
}