WOW!
You are blowing my mind!
So now if I leave the default constructor to build a 'recipe' and populate the array the program gives me a "null" when i ask for the name of a recipe entry that...
Type: Posts; User: Ian_dude
WOW!
You are blowing my mind!
So now if I leave the default constructor to build a 'recipe' and populate the array the program gives me a "null" when i ask for the name of a recipe entry that...
Norm,
Conceptually what you say I understand but I guess I dont since I dont know how to do what you mean.
Where do I have to delete/or/modify?
Thank you,
Ian
Norm,
breakfastRecipes is not a variable, its a field in the Planner Class.
I will post all the code ( I have a Main a, Ingredient, a Recipe, and a Planner class in the same package.
I...
Norm,
I have created a planner called july5 and added a recipe called stirFry
this is the code in main:
Planner july5 = new Planner(6, 7, 2021);
july5.addRecipe(stirFry, 0);
Hi Norm,
Yes:
How come even when I use my default constructor and I populate the array completely with a "recipe" in each slot of he array I still get a "is null" error.
Then I made a more...
Norm,
That totally worked! I cant understand why this wasn't easier to find online.
I have kind of the same issue still although for sure I am doing something wrong.
This is my meal...
I have a bunch of code that works.
The program is giving me an error wen I run it and it says:
Cannot read field "costOf" because "array[1]" is null
I have done this with a for each loop and...