This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
is there any way of handling user keypress in console (is user typing any message or not!!!) ?
i have tried :
BufferedReader br = new BufferedReader(
a) int i = br.read();
b) if (br.ready())
c) DataInputStream dis = .....
if (dis.available() == 0)
this methods require of ENTER (CR) key press.
but by these methods i cannot get, Is user typing or not !