Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.27 seconds.

  1. Replies
    6
    Views
    11,160

    Re: How to make a program quit?

    That's assuming that userInput is a String. It could also be that the user is using ints or something of the like (enter 0 to quit).

    OP- What I meant was, do it the other way. Instead of checking...
  2. Replies
    6
    Views
    11,160

    Re: How to make a program quit?

    And what part of this are you having trouble with? Getting user input? Doing different things based on something else? Exiting?

    Normally I'd tell you to investigate the System.exit() method, but I...
Results 1 to 2 of 2