Java learning project created in eclipse

Once you've configured eclipse, I want to try very sense of ritual hello world, so with the following content.
Here Insert Picture Description
Open eclipse, File -> New -> Project to create a new project
Here Insert Picture Description
select Java Project and click Next
Here Insert Picture Description
Enter a project name in the Project Name (after ps input will be in your save file folder directory, get a new folder which contains bin and src two sub-folders), click Finish to enter the next step
Here Insert Picture Description
in src, double-click (win right-click) New-> package
this step is under construction in a package
(ps src: source is the birthplace of the meaning, writing in the program is the location of your project final storage, abbreviated as SRC, development and maintenance projects are carried out in the following.
naming convention ps2 package: the package name to use all lowercase package name is usually made up of several identifiers, with the point between the identifier. (.) separated, which often represent the first identifier domain name.)
Here Insert Picture Description
src folder under the new package just created, we double-click or right-click on the map to get the package. Create a new class in this package.
(Ps: class naming convention: the first letter capitalized)
Here Insert Picture Description
Upon completion we get Java file named HelloWorld.java friends, edit the code box appeared.
Coding

public static void main(string ards[])
{
     System.out.println("Hello,World!");
}

Here Insert Picture Description

The final step, Here Insert Picture Description
after the successful operation, would limit as shown in the console console.Here Insert Picture Description

Released two original articles · won praise 2 · Views 340

Guess you like

Origin blog.csdn.net/weixin_44598035/article/details/105175806