What I want the program to do is offer a user four options. Three of those options will generate a message when the user picks them. The fourth choice exits the program.
My problem is that all loop examples I have seen involve simple countdowns of some kind, liks this:
CODE
for (i = 1; i<6; i++) {
System.out.println (i);
But what do you do when you don't want a straight run through the loop? I want a user to be able to keep entering choices 1 through 3 until they get tired of it, then exit by choosing 4. Right now the best I can get is one choice by the user, then the program ends. It is not stepping through the loop for some reason.
I wonder if a DO WHILE loop would work?
I have tried using SWITCH and the program still hangs.
PS: Thanks for your willingness to help -- I know I don't give the best explanations in the world.
QUOTE(PennyBoki @ 23 Jan, 2008 - 11:41 AM)

I don't understand why the loop doesn't work because I don't understand what your code is suppose to do. Please explain better.