public class demo1 {
public static void main(String[] args) {
//
Scanner scanner = new Scanner(System.in);
System.out.println("input:");
if (scanner.hasNextLine()){
String str = scanner.nextLine();
System.out.println("输入内容为:"+str);
}
scanner.close();
}
}