- Notepad can be used to write and edit java code.
- The notepad file must be saved with '.java' extension.
- Name of the file must be same as that of the class being written in it.
- This file can be accessed with command prompt and can be compiled and run.
- cmd to compile java file : javac <space>filename.java
- If it shows no errors then the command to run java file is : java <space> filename
Writing java code can be made simple using IDEs. A number of java IDEs are available on internet
Some of the IDEs for programming java are:
- Eclipse
- Netbeans
- BlueJ
- JCreator
- IntelliJ Idea
- JBuilder
Out of all these IDEs Eclipse is the most preferrable one.It is a free software.You can download Eclipse at Download Eclipse