Stop Input with Control Z: Java Loop

  • Context: Comp Sci 
  • Thread starter Thread starter Punkyc7
  • Start date Start date
  • Tags Tags
    Java Loop
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Punkyc7
Messages
415
Reaction score
0
I am having the user enter a bunch of strings and when the user wants to stop entering them I want him to use control z to stop the input. The only problem is I can't seem to figure how to make that happen, does anyone have any suggestions?
 
on Phys.org
There should be lots of examples on line you can follow. The phrase you want to Google is 'trap keystrokes'
 
Ok thank you, I didnt know what to look for