on a while loop...
Instead of using the regular sentinel value "press -1 to quit" I want to tell the user "press esc to quit".
How do I do that programmatically? How do I tell Java that "esc" key means that the program should automatically quit?
Thanks,
Ben
Instead of using the regular sentinel value "press -1 to quit" I want to tell the user "press esc to quit".
How do I do that programmatically? How do I tell Java that "esc" key means that the program should automatically quit?
Thanks,
Ben