In Java, how to restrict a user to enter only one type?

前端 未结 0 1221
野的像风
野的像风 2020-12-03 08:08

In this case, I have asked the user to enter 1,2 or 3. If user enters string, it should ask the question again. when my code runs, every if statement is running, where as I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题