日期:2014-05-19 浏览次数:21004 次
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String lastStr = "" ;
while(true){
lastStr = input.next(); // (1)
System.out.println("输入内容:" + lastStr); // (2)
}
}