Restart system in Java

import java.io.IOException;
 
public class Test {
  public static void main(String[] args) {
	 try {
		  Runtime.getRuntime().exec("shutdown -r -t 0");  
	} catch (IOException e) {
		e.printStackTrace();
	}
  }
}
Content Protection by DMCA.com
Please Share