On Wed, 19 Apr 2006 20:03:07 +0100, Christo wrote:
> while ((mFood != "Y") || (mFood != "N"))
> {
> mFood = User.inputString("ENTER Y for food or N for no
> food");
> }
> You might also want to actually change the value of mFood each pass
> through the loop...
See that assignment statement?
Apparently User.inputString() takes a prompt, and returns the user's
input.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
JC - 27 Apr 2006 15:55 GMT
> On Wed, 19 Apr 2006 20:03:07 +0100, Christo wrote:
>> while ((mFood != "Y") || (mFood != "N"))
[quoted text clipped - 12 lines]
>
> /gordon
<grin>
Silly me - didn't clock that.
</grin>