Reading single character from console in java?

Using: int byte = system.in.read(); char singleChar = (char)byte; should read a single byte from the console.

– Shaded Jan 25 at 19:20 @Shaded - Simply because when I double checked the return type of system.in.read() in the JavaDocs, the return type was listed as abstract int. – Justin Niessner Jan 25 at 19:23 Good answer :D thanks for the clarification! – Shaded Jan 25 at 19:36 thanks............. – Anand Pal Jan 25 at 16:16 @Shaded - read() returns an int because all numeric types in Java are signed, and bytes are often conceptually unsigned.

The byte type cannot conveniently represent values in the range 127-255, so an int is used instead. – kevin Jan 25 at 6:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions