Right on about needing a loop. We have several choices for() and while() are probably the most used. for() is good for going through a bunch of things like byte arrays or collections, but not quite what we need here. Let's try while()
Another style we used to call "priming the pump" duplicates a line of code to get rid of the break. I guess I learned this in COBOL because there was no break!
Now I used things like getChoice() in there. I'm implying a method that does your read stuff and returns whatever the user entered. After you get used to it, it's generally easier to understand code if it's broken in smaller chunks. It can be easier to write, too, if you start by writing your intentions and then turn the phrases into methods.
Hope that helped!
[ October 20, 2003: Message edited by: Stan James ]