File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Break back to Topic Menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Break back to Topic Menu" Watch "Break back to Topic Menu" New topic

Break back to Topic Menu

Mark Adams

Joined: Nov 23, 2007
Posts: 16
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,

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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!

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: Break back to Topic Menu
jQuery in Action, 3rd edition