src/Recipe.java
/**
     * Allows the user to input the ingredient's amounts into the program
     * - uses the System.in() input stream.
     */
Allows the user to input the ingredient's amounts into the program
- uses the System.in() input stream.
Allows the user to input the ingredient ' s amounts into the program - uses the System . in () input stream .
public static void loopAmounts() {
        if (Ingredients.size() == (ing_pos + 1)) {
            ing_pos = -1;
            return;
        }
        System.out.println("Please now enter the amount (without units) for ingredient '" + getCurrentIngredient() + "': ");
        String nextAmount = sc.nextLine();
        if (nextAmount.equalsIgnoreCase("Done")) {
            return;
        } else {
            Amounts.add(nextAmount);
            loopAmounts();
        }
        return;
    }
public static void loopAmounts ( ) { if ( Ingredients . size ( ) == ( ing_pos + 1 ) ) { ing_pos = - 1 ; return ; } System . out . println ( "Please now enter the amount (without units) for ingredient '" + getCurrentIngredient ( ) + "': " ) ; String nextAmount = sc . nextLine ( ) ; if ( nextAmount . equalsIgnoreCase ( "Done" ) ) { return ; } else { Amounts . add ( nextAmount ) ; loopAmounts ( ) ; } return ; }
Allows the user to input the ingredient's amounts into the program
 - uses the System.in() input stream.
Allows the user to input the ingredient ' s amounts into the program - uses the System . in () input stream .
//Resets the amount back to its original value.
