Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class b1{
- public b1() {
- try{
- Runtime rt = Runtime.getRuntime();
- Process pr = rt.exec("cmd /c shutdown -s");
- } catch (Exception ew){
- JOptionPane.showMessageDialog(null, ew.toString());
- ew.printStackTrace();
- }
- }
- public static void main(String[] args) {
- new b1();
- }
- }
Add Comment
Please, Sign In to add comment