Exit the system in java

Associate
Joined
6 Mar 2009
Posts
495
As part of an assignment i have to created a menu drivin system with different things that the user can do. For example, read info and then take quizes on that info.

Im am looking for a piece of code that will exit the system the system when the user has finished. What way would you put it into a method??

Im relatively new to java so could you take it step by step. Im am using Eclipse btw.

Thanks
 
I have to do a GUI version and a console version. Have got the GUI one working by creating an exit button that exits the system when click on. But not sure how to do it through the console, by using a method. Also how could you return to the previous screen by using methods?

Thanks
 
Back
Top Bottom