Technozers
Learn something new about computer technology and science.
Tuesday, 7 February 2012
Java program for opening notepad
Coding
class demo {
public static void main(String a[]) {
Runtime r=Runtime.getRuntime();
Process p=null;
try {
p=r.exec("notepad");
}
catch (Exception e) {
System.out.println("Error executing notepad");
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment