How to open Notepad through java program: Notepad is a text editor which
comes with Windows operating system, It is used for creating and
editing text files. You may be developing java programs in it but you
can also open it using your java code.
import java.util.*; import java.io.*; class Notepad { public static void main(String[] args) { Runtime rs = Runtime.getRuntime(); try { rs.exec("notepad"); } catch (IOException e) { System.out.println(e); } } }