For Java, if I want to do an if statement to make sure the input only takes in one character, how should I proceed?

前端 未结 0 661
青春惊慌失措
青春惊慌失措 2020-12-10 05:42

I am trying to get user input and make sure what they put is a character only, so if they do ab, it will ask them to do another user input instead of taking the first letter

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