Has been deleted!
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
SlaterB hat gesagt.:> Eigentlich doch nur der name nochmals und die dazugehörige Anzahl, oder?
noch besser Referenz auf das Ingredient-Objekt + neu die Anzahl
for (int i = 0; i < recipe.neededIng; i++) {
String inputName = IOTools.readLine("The name of the ingredient: ");
for (int c = 0; c < ingredient.size(); c++) {
recipeIngredient.ingredient(ingredient.get(c),addAskingUserQua());
if (inputName.equalsIgnoreCase(ingredient.get(c).getName())) {
recipe.addIngredient(recipeIngredient);
}
}
}