Although there are many programming software to implement Java programs, very few people will use Notepad to write, but this for beginners, this is a good way to understand how Java operation. and others do not understand, you know is not very handsome. (personal view)------------
First, create a new Java file
1. New Notepad (. txt) à rename to Helloworld.java (take new HelloWorld as an example)
2, you may encounter the problem is that there is no extension (the following WIN7 for example)
--Open My Computer
--Discover my computer does not have a menu, organize, layout, and menu bar (the menu bar will appear, that is, the file on the image line)
Tools, Folder Options
--Check out the "Hide extensions of known file types" Check out and OK (this is the extension)
Second, write code
1 Public class helloworld{2 Public Static void Main (string[] args) {3 System.out.println ("My name is Belieflee." ); 4 }5 }
III. implementation of the document
Note: Copy the written. java files to a file that knows the path, such as: C:\User\HYF
1. Open Run->cmd
2, first execute Javac Helloworld.java (through the compiler, convert. Java source files to. class bytecode files)
3, in the implementation of Java HelloWorld (do not Add. class, if the error is added, through the interpreter to implement the Code function)
Use Notepad to write Java programs (understand the Java program implementation process)