System restart using JAVA programming

import java.io.IOException;

public class Restart {

    public static void main(String[] args) throws IOException {
        Runtime rs=Runtime.getRuntime();
        rs.exec("shutdown -r -t 0");
    }

}

Share this

Related Posts

Previous
Next Post »