Is it possible to solve this? /* * To change this license header, choose License Headers in…

Is it possible to solve this?

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package SteppingStone6_RecipeBox;

/**
*
* @author 1174280_snhu
*/
import java.util.ArrayList;
import java.util.Scanner;

public class SteppingStone6_RecipeBox {
/**
* Declare instance variables:
* a private ArrayList of the type SteppingStone5_Recipe named listOfRecipes
*
*/
private ArrayList

public void setListOfRecipes(ArrayList

/**
* Add constructors for the SteppingStone6_RecipeBox()
*
*/
public SteppingStone6_RecipeBox() {
listOfRecipes=new ArrayList

/**
* Add the following custom methods:
*
* //printAllRecipeDetails(SteppingStone5_Recipe selectedRecipe)
* This method should accept a recipe from the listOfRecipes ArrayList
* recipeName and use the SteppingStone5_Recipe.printRecipe() method
* to print the recipe
*
* //printAllRecipeNames() <– This method should print just the recipe
* names of each of the recipes in the listOfRecipes ArrayList
*
* //addRecipe(SteppingStone5_Recipe tmpRecipe) <– This method should use
* the SteppingStone5_Recipe.addRecipe() method to add a new
* SteppingStone5_Recipe to the listOfRecipes
*
*/
public void printAllRecipeDetails(String recipe) {
boolean check=false;
for(int i=0;i
if(listOfRecipes.get(i).getRecipeName().equalsIgnoreCase(recipe)) {
listOfRecipes.get(i).printRecipe();
System.out.println();
check=true;
}
}
if(!check) {
System.out.println(recipe+” not found!!!”);
}
}
public void printAllRecipeNames() {
for(int i=0;i
System.out.println(listOfRecipes.get(i).getRecipeName());
}
}
public void addRecipe() {
ArrayList

/**
* This could should be uncommented when using the
* public static main() method
*
* Comment out this section when using the
* SteppingStone6_RecipeBox_tester.
*/
public static void main(String[] args) {
SteppingStone6_RecipeBox myRecipesBox=new SteppingStone6_RecipeBox();
Scanner menuScnr = new Scanner(System.in);
System.out.println(“Menun” + “1. Add Recipen” + “2. Print All Recipe Detailsn” + “3. Print All Recipe Namesn” + “nPlease select a menu item:”);
int input = menuScnr.nextInt();
while (input<=3) {
if (input == 1) {
myRecipesBox.addRecipe();
} else if (input == 2) {
System.out.println(“Which recipe?n”);
String selectedRecipeName = menuScnr.next();
myRecipesBox.printAllRecipeDetails(selectedRecipeName);
} else if (input == 3) {
myRecipesBox.printAllRecipeNames();
}
System.out.println(“Menun” + “1. Add Recipen” + “2. Print All Recipe Detailsn” + “3. Print All Recipe Namesn” + “nPlease select a menu item:”);
input = menuScnr.nextInt();
}
}
}

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!