且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

线程"main"中的异常java.util.NoSuchElementException:找不到行

更新时间:2023-11-18 16:37:52

您应该处理此异常,或者只使用

You are supposed to handle this exception or just use the hasNextLine() method to avoid the exception.

while(sc.hasNextLine()){
    requestedSeat = sc.nextLine();
}