HELP with input
posted 15 years ago
You could implement a KeyListener that listens for keystrokes and identifies them, acting when specific strokes are identified.
Originally posted by Ryan Johnstone:
I have a program where i want to get four digits from the user running from console. Also if the user hits escape i would like to exit the program. I have yet to come across something that will let me get input without hitting enter. Any help would be appreciated.