Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with simple recipe program  RSS feed

 
b fish
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. Looking for some help on a project where I need to make a recipe book with the follow features:
1. add a recipe
2. list all recipes
3. display a single recipe
4. Search and return recipes with a single ingredient.

I tried below using a hashmap, for the recipe name and ingredients:

 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, are you asking for code review?
 
b fish
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harshvardhan ojha wrote:Hi, are you asking for code review?


well currently my code does not work. I am asking for help on how I can implement the requirements listed above. A hashmap may not be necessary, but I though it was easiest. Thanks! -Bill
 
Campbell Ritchie
Marshal
Posts: 55768
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
You must tell us exactly what goes wrong, otherwise we can’t help.
b fish wrote: . . . A hashmap may not be necessary, but I though it was easiest. Thanks! -Bill
This bit sounds worrying. It sounds as if you are trying out solutions without being sure what they are for. You can probably get it to work after 10000 guesses. Or you can decide what you want to do, and get it to work after 1 attempt.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!