Scanner scan =new Scanner(System.in); int num1=scan.nextInt(); int num2=scan.nextInt(); System.out.println(num1+num2);
控制台输入非数字字符时报错 怎捕捉错误并提示?
可爱柠檬
KXFT
一条小咸鱼
相关分类