Java Menu Driven Programming and Loops
<p>I am creating a basic program that allows users to purchase seats on a plane. I need help modifying this code so that I can return from the inner menu to the outer:</p>

<pre><code>boolean done = false;
while(!done)
        System.out.println("Enter 1 to buy seat.");
        ...
        //other menu options
        ...
        System.out.println("Enter o to exit.");
        input = keyboard.nextInt();

        if (input == 0)
            done = true;

        if (input == 1)
        {
             String seat;
             System.out.println("Please enter the seat you wish to buy or enter X " +
                                "to return to the first menu.");
             seat = keyboard.nextLine();
        }
</code></pre>
