标签:ack opened 字符 display read lin 技术 cep string
BufferedReader最重要,因为有个方法public String readLine()
1 package System输入输出; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java.io.InputStreamReader; 6 7 public class Test { 8 public static void main(String[] args) throws IOException { 9 BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 10 System.out.print("请输入数据:"); 11 String str=br.readLine(); 12 System.out.println(str); 13 } 14 }
标签:ack opened 字符 display read lin 技术 cep string
原文地址:http://www.cnblogs.com/xiongjiawei/p/6685619.html