1. Not finding help here? Sign up for a free 30min 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!

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

    DaveC426913

    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
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Java ending a loop
  1. HeapSort Java (Replies: 3)

Loading...