NCRE官方备考平台
nextInt()方法可能会抛出InputMismatchException,通过try-catch块可以处理无效输入。
支付 ¥0.1 即可查看此题答案和详细解析
低至 ¥0.1 起