关于java控制台输入

Scanner sr = new Scanner(System.in);
String cr= sr.nextLine();
原文地址:https://www.cnblogs.com/jpf111/p/12564099.html