I have code where I am using a "while" statement. As long as the User presses the number 1 on the keyboard, the program loops back to the start, which is perfect, that is what I want. If a User press the number 0 on the keyboard, the program should stop and ... this is the part of the "while loop" that I don't understand how to code. Below is the "While Loop" that I have, as well as the ending line.
public static void main(String[] args) { String another ="1"; while (another.equals("1")) .....NOW WHAT?......AS YOU CAN SEE, MY LOOP IS INCOMPLETE. I DON'T KNOW HOW TO CODE THE 0 PORTION.
...at the bottom after the System.out.Prinln() I have the following line of code:
another = Console.readString("To place another order press(1). Press 0 to quit? ");