Create the first Java project (beginner) want to know more about Java? Follow me, do not update regularly!

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.