Method of reading single character with scanner class in Java
•
Java
Scanner does not have a method to directly read a single character, and the next method cannot read the space character, because scanner takes the space character as the sign of input completion
The above method of reading a single character with scanner class in Java is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码