Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在java中从控制台读取单个字符......?可以在没有 BufferedReader 的情况下完成吗..?
使用:
int byte = system.in.read(); char singleChar = (char)byte;
应该从控制台读取一个字节。