阅读背景:

如果用户输入不正确,将捕获的try-catch

来源:互联网 

I am wondering how to do it in a way so that the user can both opt out of entering integers, and so that if the user does not enter an integer, it will catch it and re-prompt them without ending the program. I need the scanner to take in both int and string types. Is there a way to do this? Or a way around it?I am wondering how to do it in a way so that th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: