import javax.swing.JOptionPane;
public class MakeLunch
{
	private static int selection;
	
	public static void main(String[] args)
	{	
try
{
	selection = JOptionPane.showConfirmDialog(null, "Do you feel like shopping?");
	
	while(selection == JOptionPane.YES_OPTION)
	{	
	
		Lunch myLunch = new Lunch();

		myLunch.Shop();
		myLunch.Display();
		selection -= 1;
	}
	}
	catch( NegBalanceException nbe)
	{
		JOptionPane.showMessageDialog(null, "Your balance is below $0.00");
	}
	catch(NumOutOfRangeException oor)
		{
			JOptionPane.showMessageDialog(null, "Invalid Entry. Please try again.");

		}
	}
}
