Choose Your Language

Thursday, 11 July 2013

Java program to open a notepad

import java.io.IOException;

/**
 *
 * @author Aravind Sankaran
 */
public class OpenNotepad {
     public static void main(String[] abc) {
      try {
            Runtime.getRuntime().exec("notepad");
           }
    catch (IOException e) {
      System.out.println(e);
    }  
  }
}

No comments:

Post a Comment