Question: how to do getch in java?
Answer: There's no getch() function equivalent in java. You have to create a GUI and attach the Event Listener's to them . EDIT:How can I read input from the console using the Scanner class in Java?