How To Shutdown your Computer using Java Code

In this tutorial I create a program that shuts the computer down after 10 seconds, which gives you chance to abort the shutdown sequence. I used Java Runtime to execute the command line switch, and the second parameter for aborting the first command sequence. go to http://codecypher.blogspot.com/2012/05/how-to-shutdown-pc-with-java-code.html for the code.