01. Example:
import java.util.*; import java.io.*; class openNotepad { public static void main(String[] args) { Runtime cmd = Runtime.getRuntime(); try { cmd.exec("notepad"); } catch (IOException e) { System.out.println(e); } } }
import java.util.*; import java.io.*; class openNotepad { public static void main(String[] args) { Runtime cmd = Runtime.getRuntime(); try { cmd.exec("notepad"); } catch (IOException e) { System.out.println(e); } } }