CodesJava

Easy learning with example program codes

how to open a notepad in java?


package com.codesjava;
 
import java.io.IOException;
 
public class Test {
  public static void main(String args[]){
	try {
            Runtime.getRuntime().exec("notepad.exe");
        }
        catch (IOException e) {
            e.printStackTrace();
        }		
  }
}


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap