/*
* Open Notepad Application using Java
*/
import java.io.File;
public class pdf {
public static void main(String[] args) {
try {
Process p = Runtime.getRuntime().exec("notepad"); //Process starts notepad
p.waitFor();
System.out.println("Done");
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
output:
~~~~~~~
Done
Note: it will open a notepad after the execution
Subscribe to:
Post Comments (Atom)
Backup files to google drive using PHP coding
Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...
-
Hi All, Here I write a program for Exchange Sort Using Java. The exchange sort compares each element of an array and swap those elemen...
-
Dear All, 16. What is the difference between a function and a method in PHP? A function is a piece of code that can be called from anywhere...
-
Hi All, Welcome to the TECHIE SNACKS world. The main theme of this blog is sharing the Knowledge in various domains and platforms o...
No comments:
Post a Comment