The first step: Modify the hidden file extension in the folder, so that its file extension display all;
The second step: Create a new text file in the folder and change its Extension property to the Hello.java file name extension;
The third step: right-click Open mode with txt text open
Fourth step; Write code:
Class Hello
{
public static void Main (String [] args)
{
System.out.println ("Hello World");
System.out.println ("Hello World");
System.out.println ("Hello World");
System.out.println ("Hello World");
System.out.println ("Hello World");
System.out.println ("Hello World");
System.out.println ("Hello World");
}
}
and then save.
Fifth step: Hold down shift in this folder and click the right mouse button to select "Open Command Window Here"
Sixth step: Write Javac Hello.java in the folder specified by the DOS window and click Enter,
Seventh step: Then enter Java Hello
The last written content will be displayed, such as:
Java Basics-Write simple Java programs in the DOS console