getting started with java
1. Navigate to www.java.sun.com and download the Java JDK or Java SE, not JRE (Java Runtime Environment). Once its downloaded, install it. Then restart the computer. ( restart is not necessary ) 2. Open the notepad and write the following code: public class HelloMahajan{ public static void main(String[] args){ System.out.println("Hello Mahajan!"); } } 3. Save this code as HelloMahajan.java. In Windows, make sure you choose the "all files" option from the file type drop down list box, otherwise it will be saved as a text file and not a .java file. 4. Click start > run and type command or cmd 5. From the command prompt, drill down to the folder where you saved the HelloMahajan.java file. (type "cd " you can use tab for auto completion) 6. Type the following: javac HelloMahajan.java and press Enter. You should see that after thinking for a while the computer returns to the command prompt. 7. Type "java HelloMahajan" (no quotes) and see wha