Create a new Java file, the suffix name is changed to Java
Open NOTEPAD ++ writing program source code, as shown

Write a program and save, as shown

Add CMD to the address bar of the Java file, open the console window, as shown

Enter Javac HelloWorld.java, compile the Java file into a zona code file, generate a Class file, as shown

Run the Class file through the java command, enter Java HelloWorld, get the program run results, as shown

Procedure of each word does not have problems
Try to use the output of all English, there may be problems in the output of Chinese
File names and class names must be consistent
Don't use Chinese symbols
Open IDEA, create a new project, click Next to NEXT
Right click on the SRC folder, New a java class, as shown

Enter PSVM will automatically expand into main method, as shown

Enter Sout will automatically expand into system.out.println ();
Control the output statement of the program, as shown

Click on the green arrow on the left, execute the program, as shown

First Java program Output hello world !!...
Hello world Create a new folder, store the code New Java file File suffix name .java egļ¼Hello.java Note: The system may hide the suffix name, need to manually open Write code Compile: Javac Java file,...
Hello World Enter the first program of the Java world Hello, World! The ceremony of the program. In the Desktop New Folder (NOTO), create a subfolder (code) and establish a text in a subfile. (The fil...
Introduction: Is it difficult to learn Java? In the previous article, we introduced the automated test environment for Selenium Java. I hope that everyone's JDK and Eclipse are installed. Because it i...
Install the JDK and Java integrated development environment Eclipse, our Java learning trip is officially started. As a step in this journey, let us get the first Java program - "Hello World"...
Non-hello, world, non-hello, world, non-hello, world Important things say three times No more nonsense, directly on the code That's right, to get into Java, the first thing we should say hello is Java...
/* The variable must be declared, assigned, and used. variable can only be valid in its scope, leaving range is invalid is not allowed to generate 2 names with the same name in the same scope. */...
classPath (can execute .class file anywhere If the classPath is not configured, it will automatically go to the current directory to find the bytecode of the specified name. If the classPath is config...
Learning any language, the first program is hello world. Just beginning to learn java junior partner, I suggest writing code in Notepad so you can lay a better foundation for the next. First create a ...
Under eclipse and other development tools are packed situation. java project java engineering means After Next, fill in the project name here Click finish After filling, meaning complete Then cre...