public static void main(String[] args)
	{
		//variables
		final int custID = 1;
		String input;
		char choice;
		boolean repeat = true;
		BufferedReader brin = new BufferedReader(new InputStreamReader(System.in));
		Order cart = new Order(custID);
                
		//initialize database connections
		DataLoad.connect();
		//initialize tables
		DataLoad.dropAllTables();
		DataLoad.createAllTables();
		//load data into tables
		DataLoad.loadTableData();
		
		//display main menu
		System.out.println("Welcome to the store!\n");
		Menu.main_menu();
		//take user input and switch based on choice
		try
		{
			while(repeat = true)
			{
				input = brin.readLine();
				input = input.toUpperCase();
				choice = input.charAt(0);
				
				switch(choice)
				{
					case '1':
						Menu.browse_catalog(cart);
						break;
					case '2':
						Menu.view_cart(cart);
						break;
					case '3':
						Menu.place_order(cart);
						break;
					case 'X':
						System.out.println("Goodbye! Thank you for shopping with us!");
						repeat = false;
						System.exit(0);
						break;
					default:
						System.out.println("Sorry, invalid selection. Please select an option from the menu above: ");
						break;
				} //end switch
			} //end while loop
		} //end try
		catch (Exception e)
		{
			System.err.println("Error: " + e);
		} //end catch
		
		
	} //end main