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...
Type: Posts; User: KevinWorkman
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...
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...