Stepping_Stone5_Recipe mySecondRecipe = new Stepping_Stone5_Recipe(Pizza, 2,recipeIngredient, 300); // Initialize first recipe String IngredientNameTwo =
Question:
Stepping_Stone5_Recipe mySecondRecipe = new Stepping_Stone5_Recipe("Pizza", 2,recipeIngredient, 300);
// Initialize first recipe
String IngredientNameTwo = "Noddles";
Ingredient tempIngredientTwo = new Ingredient().addIngredient(IngredientNameTwo);
recipeIngredientTwo.add(tempIngredientTwo);
myFirstRecipe.setRecipeName("Ramen");
myFirstRecipe.setServings(2);
myFirstRecipe.setRecipeIngredients(recipeIngredientsTwo);
myFirstRecipe.setTotalRecipeCalories(150);
// Print details of both recipes
myFirstRecipe.printRecipe();
mySecondRecipe.printRecipe();
Recipe newRecipe = new Recipe();
newRecipe.createNewRecipe();
}
error message
Exception in thread "main" java.lang.RuntimeException: Uncompilable code - cannot find symbol
symbol: variable recipeIngredient
location: class stepping_stone5_receipe.Stepping_Stone5_RecipeTest
at stepping_stone5_receipe.Stepping_Stone5_RecipeTest.main(Stepping_Stone5_RecipeTest.java:1)
C:\Users\ibekw\AppData\Local\NetBeans\Cache\16\executor-snippets\run.xml:111: The following error occurred while executing this line:
C:\Users\ibekw\AppData\Local\NetBeans\Cache\16\executor-snippets\run.xml:68: Java returned: 1
BUILD FAILED (total time: 1 second)
Please help, I am having issues running my recipeTest class. Error message is shown above
Accounting Information Systems
ISBN: 978-1260153156
2nd edition
Authors: Vernon Richardson, Chengyee Chang, Rod Smith