I want to assign tmpRecipe as the recipeName in listOfRecipes, How can I correct the below code:
Fantastic news! We've Found the answer you've been seeking!
Question:
I want to assign tmpRecipe as the recipeName in listOfRecipes, How can I correct the below code:
public void addRecipe(String tmpRecipe) { listOfRecipes.add(setRecipeName(tmpRecipe)); }
Since
public recipeSystem (String recipeName, int servings, ArrayList recipeIngredients, double totalRecipeCalories) { this.recipeName = recipeName; this.servings = servings; this.recipeIngredients = recipeIngredients; this.totalRecipeCalories = totalRecipeCalories; }
AND
private ArrayList listOfRecipes;
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: