62,614
社区成员
发帖
与我相关
我的任务
分享
public int testScanner(){
Scanner scanner=new Scanner(System.in);
while (true){
try {
return scanner.nextInt();
}catch (InputMismatchException e){
e.printStackTrace();
}
}
}