//If you are using just a windows pc with JDK installed in your system, then you just need command prompt (DOS) to write, compile and run your program.
//First open command prompt (DOS) by clicking on run and typing "cmd", click enter or run to start DOS.
//Before starting program, you must have to set enviromental veriable to run javac from any folder.
//To set inviromental veriable for java, follow these steps!
/*Right click on my computer->click on advance system setting->in avance bar, click on inveromental veriables->choose path and click edit-> give a semi colon ';' and paste the folder address of javac ie: "C:\Program Files\Java\jdk1.7.0_07\bin". click ok->ok->and exit. Thats all*/
//Now your DOS is open, goto as specific folder to save your files.
//type edit MyFirstProgram.java, it will open an text editor.
//Type the following codes
public static void main(String args)
//Save and close the file.
//Type javac MyFirstProgram.java to compile the program.
// If no error occurd then type java MyFirstProgram , the window will show you the message "Hey! Buddy"