How To Open Notepad in Java

import java.io.*;
 class Notepad
{
 public static void main(String[] args)
 {
   Runtime r = Runtime.getRuntime();

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

Previous
Next Post »

Disqus Shortname

Comments system