Hi D Like Help Figuring Make Code Work Nothing Ve Tried Worked M Hoping Help Ve Included T Q37112718

Hi,

I’d like some help figuring out how to make my code work.Nothing I’ve tried has worked so I’m hoping you can help.

I’ve included two separate files below

Doc#1 is: SteppingStone5_Recipe

xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

package SteppingStones;

import java.util.ArrayList;
import java.util.Scanner;

/**
*
* @author
*/
public class SteppingStone5_Recipe {
// Declares private fields and defines data types by declaringvariables
private String recipeName= “”;
double servings= 0.0;
ArrayList <String> recipeIngredients= new ArrayList<String>();//ArrayList stores the text for the recipeingredient added
private double totalRecipeCalories= 0.0;
  
// variables are initialized to a default value
  
public SteppingStone5_Recipe(){
this.recipeName = “”;
this.servings = 0.0;
this.recipeIngredients = (null); //<– assignment value forempty ArrayList
this.totalRecipeCalories= totalRecipeCalories;
}

// accessors and mutators also called setters and getters
public String getrecipeName() {
return recipeName;
}

public void setrecipeName(String recipeName) {
this.recipeName

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.