The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Hey,
I'm a total newbie to Java programming. Itīs a course i'm taking in the university. Itīs actually a lot of fun (when it works) not so fun when it doesn't

Anyway I've managed to program whats above, and it works fine. But I would like to tweak it a bit. I want to the program, say if you answer right: the program asks you if you would like to continue doing the same process again (but entering other digits) and if you answer wrong it will say: wrong answer, try again and let you enter the sum once more until you are right.

I have watched I think 5 different youtube-videos about loops. I think a Do loop would be the case for me. But I have no idea how to implement it. Could someone be helpful and show me a bit for starters so that I have something to go on with

Oh, it was not that hard. I have made it this far now, but I think it gets a bit tricky now. I would like the program to ask would you like to continue YES / NO. If YES go back to the beginning, if no say Ok (or something)?
How is that made =/