Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Break back to Topic Menu

 
Mark Adams
Greenhorn
Posts: 16
  • 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
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic