How to open MS Paint using Java Code
We can open the Microsoft Paint using the Java program listed below
Program:
//A small java program to open Microsoft Paint window on the screen.
import java.util.*;
import java.io.*;
class MSPaint {
public static void main(String[] args) {
Runtime rs = Runtime.getRuntime();
try {
rs.exec("mspaint");
}
catch (IOException e) {
System.out.println(e);
}
}
}
Here is a sneak-peak into what academic writing is all about, especially for those who want to make a career in this field of writing. See more java homework solutions
ReplyDelete