• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

How to add recipe and their ingredients?

 
Marshal
Posts: 65365
248
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ket Shah wrote:. . . Got rid of those no‑arguments constructors.
. . .

Good. Please also add some spacing to your code; it makes it much easier to read. We have some suggestions here.

What on earth is going on in those loops? There is something very long with if (i == 2) inside a loop. That is not how loops are intended to be written. What is wrong with
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I am able to print the Recipe and their respective ingredients. I got the basic knowledge how to do it, now will work on creating different method and add validations. Everyone thank you for your help. Special thanks to Liutauras Vilda. You took me nicely and make me understand how things work.

 
Bartender
Posts: 10777
71
Hibernate Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:It could look similar to (it is super simplified and shortened):


<eastern european digression>
Amazing to find someone else who knows Gogol Mogol. My dad (who was Polish) introduced it to us kids when we were nippers - except he called it "Kogol Mogol".

Egg yolks, sugar, and a belt of hooch (Grand Marnier is my favourite) - Was it the same in your family? And my mum used to make meringues or mousse so that the egg whites didn't go to waste.

Planning on making flaczki for Christmas this year too.
</eastern european digression>

Winston
 
Marshal
Posts: 7070
491
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Winston Gutkowski wrote:Amazing to find someone else who knows Gogol Mogol. My dad (who was Polish) introduced it to us kids when we were nippers - except he called it "Kogol Mogol".

Egg yolks, sugar, and a belt of hooch (Grand Marnier is my favourite) - Was it the same in your family? And my mum used to make meringues or mousse so that the egg whites didn't go to waste.

Yes, I can't remember myself when was the last time I tasted it. For sure I had to be around 7. Yes, there are more ways to call it and your dad was correct too calling it Kogol Mogol, nevertheless originaly it used to be written as Гоголь-моголь in russian, so, later on we translated it to own lithuanian language and we got what we got.
Yes, the main ingredients used to be egg yolk and sugar and some other flavours, the rest variations are improvisations balancing around 40 degress, of course back in that time my strongest ingredient I was able to have was egg

Winston Gutkowski wrote:Planning on making flaczki for Christmas this year too.

And that is indeed a good idea, I might steal it from you

Appologies other readers for being out of context of this thread.
 
Liutauras Vilda
Marshal
Posts: 7070
491
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ket Shah wrote:Now I am able to print the Recipe and their respective ingredients.

Well done. Don't forget to use some comments in your final version where these needed (do not overload with them).
 
Acetylsalicylic acid is aspirin. This could be handy too:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!