在运行这一步之前运行了Scanner对象.close()方法
NoSuchElementException if input is exhausted 报错
原文:https://www.cnblogs.com/javahanlong/p/13221374.html