dcsimg

How can I return a status code to the system from my program's main method?

John Mitchell

Use the java.lang.Runtime.exit() or java.lang.System.exit() methods to specify the system status value you want to return.