Open Notepad (Java Program)

import java.util.*;
import java.io.*;

class OpenNotePad{
    public static void main(String[]args){
        Runtime rs = Runtime.getRuntime();
       
        try{
            rs.exec("notepad");
        }
        catch(IOException e){
            System.out.println(e);
        }
    }
}

Comments

Popular posts from this blog

Display MessageBox (Java Program)