Java program to open a notepad.

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);
    }   
  }
}
Java program to open a notepad. Java program to open a notepad. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.