Opening notepad using java..





 //opensource

import java.io.*;

class notepad {
  public static void main(String[] args) {
    Runtime notey = Runtime.getRuntime();

    try {
      notey.exec("notepad");
    }
    catch (IOException e) {
      System.out.println(e);
    }
  }
}

Posted by lol ik

Comments

Popular Posts