How to read single character from console in java...?? can it done w开发者_运维知识库ithout BufferedReader..?
Using:
int byte = system.in.read();
char singleChar = (char)byte;
should read a single byte from the console.
How to read single character from console in java...?? can it done w开发者_运维知识库ithout BufferedReader..?
Using:
int byte = system.in.read();
char singleChar = (char)byte;
should read a single byte from the console.
精彩评论