src/Recipe.java
/**
     * Allows the user to input ingredients into the program
     * - Uses the System.in() input stream
     */
Allows the user to input ingredients into the program
- Uses the System.in() input stream
Allows the user to input ingredients into the program - Uses the System . in () input stream
public static void loopIngredients() {
        if (!Ingredients.equals("")) {
            System.out.println("Please now enter ingredient number " + grabID() + ": ");
            String nextIngredient = sc.nextLine();
            if (nextIngredient.equalsIgnoreCase("Done")) {
                ing_pos = -1;
                return;
            } else {
                Ingredients.add(nextIngredient);
                System.out.println("Ingredients so far: " + Ingredients.toString());
                loopIngredients();
            }
        }
        return;
    }
public static void loopIngredients ( ) { if ( ! Ingredients . equals ( "" ) ) { System . out . println ( "Please now enter ingredient number " + grabID ( ) + ": " ) ; String nextIngredient = sc . nextLine ( ) ; if ( nextIngredient . equalsIgnoreCase ( "Done" ) ) { ing_pos = - 1 ; return ; } else { Ingredients . add ( nextIngredient ) ; System . out . println ( "Ingredients so far: " + Ingredients . toString ( ) ) ; loopIngredients ( ) ; } } return ; }
Allows the user to input ingredients into the program
 - Uses the System.in() input stream
Allows the user to input ingredients into the program - Uses the System . in () input stream
//resets back to zero.
