How to get character input without pressing enter in java | Sololearn: Learn to code for FREE!

+3

How to get character input without pressing enter in java

JAVA : i want to input a character without pressing enter i.e. when user presses the character, it should be excepted

1/26/2018 8:03:15 PM

Nayan Rathour

3 Answers

New Answer

+8

https://stackoverflow.com/questions/811851/how-do-i-read-input-character-by-character-in-java

+5

Is there any way to give input without pressing enter key in Java?

+3

Oracle has a great tutorial/sample that I found helpful: https://docs.oracle.com/javase/tutorial/uiswing/examples/events/KeyEventDemoProject/src/events/KeyEventDemo.java