标签: java visual-studio-code user-input
因此,当我运行此代码时,没有任何内容打印到"输出"屏幕。虽然当我删除Scanner in = new Scanner(System.in);和String wow = in.next();时,会打印输出wow
Scanner in = new Scanner(System.in);
String wow = in.next();
wow
答案 0 :(得分:0)
请尝试 哇= in.nextLine();