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