This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Break back to Topic Menu

 
Mark Adams
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am trying to finish this program by getting it to go back to the beginning and runing the Quiz Topic menu again after exiting each topic that I use. Could anyone please assist me with how to make this happen?
Any help would be greatly appreciated.

Thank you,
Mark

 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd take all the code you have in main now and move it to a new method. Then call that method in a loop. So main will look something like:

That's deliberately not quite compilable Java. See if you can make it do what you want. Show us what you make!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic