Language: Java
Development platform: MyEclipse
1: Build a Java Project
2: Click on the top left corner File→java Project
Project is the item name, location is the project's address, and then a Java project is created as soon as you finish.
The Java project after creation
3: Then right-src→new→packge create a package that stores Java classes for various classifications.
Naming conventions for packages: country. Company name. Project name. Layering
In this beginner Java students can not use the package naming norms, in the future after the study into the name of the package after the specification.
4: After creating the package, right-click Package →class creates a Java class that is used to store program code.
To create the interface after a good class:
After creating a good project, we can learn some code statements!!!
Task one: Print out "Hello word!!" in the console Statement
Note: The English alphabet and punctuation in the class must be in English, not Chinese! No, the platform will error!
The first step: typing the Code System.out.println () in the main method; This statement outputs a string to the console
:
Step Two: System.out.println ("Hello word!! "); All output statements must be enclosed in parentheses with double-quote decorations.
:
Step three: Click the Run button to execute the Java statement:
The results are displayed on the console console:
If your program is functioning properly and is displayed. Then pay attention to me soon! Looked not concern is the puppy!!!
Create the first Java project (beginner) want to know more about Java? Follow me, do not update regularly!