1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Java ending a loop

  1. Oct 21, 2011 #1
    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?
  2. jcsd
  3. Oct 21, 2011 #2


    User Avatar
    Gold Member

    There should be lots of examples on line you can follow. The phrase you want to Google is 'trap keystrokes'
  4. Oct 21, 2011 #3
    Ok thank you, I didnt know what to look for
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook