src/Recipe.java
/**
     * Allows the user to input the ingredient's units into the program
     * - uses the System.in() input stream.
     */
Allows the user to input the ingredient's units into the program
- uses the System.in() input stream.
Allows the user to input the ingredient ' s units into the program - uses the System . in () input stream .
public static void loopUnits() {
        if (Ingredients.size() == (ing_pos + 1)) {
            return;
        }
        System.out.println("Please now enter the unit for ingredient '" + getCurrentIngredient() + "', (amount: " + getCurrentAmount() + "): ");
        String nextUnit = sc.nextLine();
        if (nextUnit.equalsIgnoreCase("Done")) {
            return;
        } else {
            Units.add(nextUnit);
            loopUnits();
        }
        return;
    }
public static void loopUnits ( ) { if ( Ingredients . size ( ) == ( ing_pos + 1 ) ) { return ; } System . out . println ( "Please now enter the unit for ingredient '" + getCurrentIngredient ( ) + "', (amount: " + getCurrentAmount ( ) + "): " ) ; String nextUnit = sc . nextLine ( ) ; if ( nextUnit . equalsIgnoreCase ( "Done" ) ) { return ; } else { Units . add ( nextUnit ) ; loopUnits ( ) ; } return ; }
Allows the user to input the ingredient's units into the program
 - uses the System.in() input stream.
Allows the user to input the ingredient ' s units into the program - uses the System . in () input stream .