... hi guys, i want to make a program that uses a do-while loops which breaks
whenever a user presses the ESC-Key, my challenge is i do not know how to
write the code representing the ESC-key. Please help me!
Printable View
... hi guys, i want to make a program that uses a do-while loops which breaks
whenever a user presses the ESC-Key, my challenge is i do not know how to
write the code representing the ESC-key. Please help me!
Are you talking about using a KeyListener? Reading in from the command prompt through a Scanner? Something else?
Please don't post duplicate posts. I've deleted your other one.
Write a five line program using the Scanner and see what happens when you press different keys.