This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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 !