經安全檢測,此網站為安全網站,請放心前往原始網址!

java - Take a char input from the Scanner - Stack Overflow

I am trying to find a way to take a char input from the keyboard. I tried using: ... You could take the first character from Scanner.next : char c = reader.next(). charAt(0) ...

stackoverflow.com

網址安全性掃描由 google 提供