NoSuchElementException if input is exhausted 报错

运行scanner.nextInt();报错NoSuchElementException if input is exhausted

在运行这一步之前运行了Scanner对象.close()方法

posted @ 2020-07-01 20:35  闲棋  阅读(157)  评论(0)    收藏  举报