You can use System.exit(0) if you want to exit your programe. And if you want to switch from function just write down a retrun statement there. It will automatically switch your programme to the main function from where it was called earlier.
Anything more you want to knwo just let me know.
Anything of Something is better then Something of Anything.
posted 12 years ago
when i use the System.exit(0) my program closes. I dont want my program to close but rather to stop the code to execute any futher. How can i do that?