Diagram using idea to create the first Java program HelloWorld

Source: Internet
Author: User

The first few times to share with you how to configure the Java environment on your own computer, ready to work well, we will start our real coding learning. The following is an introduction to creating our first HelloWorld program using idea.

1. Open idea and create a new project.

2, in the Pop-up dialog box, select Java, the first time to use, to select our previous download good JDK file.

3, click Next, here we do not use the recommended, we ourselves to manually build.

4, click Next, fill in our project name and select the path address of the project.

5, click Finish, the project will be automatically created and loaded, and go to the main page, the main page on the left side of our project directory structure.

6. We create a package below the SRC directory.

7. Create a HelloWorld class on the package created in the previous step.

8, after creating the HelloWorld class, you can see the following effect.

9. Write an output statement in our main function.

10. Right click to run.

11. The result of execution.

To this, our first procedure is completed, hope that everybody has the harvest, continues diligently.

PS: If you feel that the article is good, but also please praise to share under, is the biggest support for me.

Diagram using idea to create the first Java program HelloWorld

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.