System.in.read()
can read a byte and returns it as int
(ranging from 0-255) . How do I get the Unicode characters from the user whose integer values are greater than 255?
Edit: I know that this could be solved using Reader
, I just want to know if System.in.read()
simply CAN NOT read a character(>255) that takes more than a byte to store( because System.in.read()
can read only up to a byte)?