Browse Source

fix: re-order Ingredient constructor

master
Brett Bender 3 years ago
parent
commit
8d1ef61699
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      LAB-3/src/uwstout/courses/cs144/labs/lab3/Ingredient.java

+ 3
- 3
LAB-3/src/uwstout/courses/cs144/labs/lab3/Ingredient.java View File

@ -14,11 +14,11 @@ public class Ingredient {
private int amount;
/**
* Creates an ingredient of the given name, unit, and amount
* Creates an ingredient of the given name, amount, and unit
*
* @param iname The name of the ingredient
* @param iunits The unit of measurement for the ingredient
* @param iamount The amount of the ingredient (in given unit)
* @param iunits The unit of measurement for the ingredient
*/
public Ingredient(String iname, int iamount, String iunits) {
name = iname;
@ -66,7 +66,7 @@ public class Ingredient {
* Set the amount of the ingredient.
*
* @param iamount The new amount of the ingredient.
* @param iunits The new unit of measurement for the ingredient.
* @param iunits The new unit of measurement for the ingredient.
*/
public void setAmount(int iamount, String iunits) {
amount = iamount;


Loading…
Cancel
Save