Java First program--hello world

Source: Internet
Author: User

Hello World

  If you do not download the JDK and configure the environment variables of the new please Baidu, the tutorial is very detailed (see: https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html)

  This tutorial is a eclipse,:https://www.eclipse.org/downloads/eclipse-packages/, please choose Java EE version, easy to follow up learning!

The above things are ready to go straight to the point, first Welcome to the world of Java! If you have a friend or classmate who learns other programming languages, you must know that the first program to get started is Hello World, why? Because the world is divided into two categories of people: the first type of people will be binary, the second type is not binary people! Well, in fact, I opened a joke, specifically why the entry process is "Hello Wold", I did not specifically please understand, if interested can Baidu, I believe the answer than I said more clearly. Nonsense, let's build a Java project.

Create a new Java project

  

  

  

  

  

  Step: file--"new--" Java Project (if not from other. Find)--"src--" class file!

Program

  

The source code and comments have been made very clear, it is necessary to emphasize again that many people may not understand what is the main function, public (common), static (static), empty (void). For beginners These can be put first, do not delve into, the following article will continue

Add that, even if you follow the map to run the program, then congratulations, you really in the binary world took an important first step.

  

  

  

Java First program--hello world

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.