java1234 Tutorial Series notes S1 Java SE to eclipse preliminary use, comments, identifiers

Source: Internet
Author: User
Tags java se

Chapter II

In the first section, I talked about simply using eclipse to write a console program. The default package name is not spoken, directly with the package.

Or did you write two console examples?

1  Public class HelloWorld {2      Public Static void Main (String args[]) {3         System.out.println ("Java version Hello world! "); 4     }5 }

Two jobs were left at the same time.

2.1.1 Console Output "I love Java"

2.1.2 Print the following characters

*
***
*****
***
*

The second section is about annotations, naming rules for identifiers, and keywords for java. (There should be nothing to be aware of)

2.2.1 Notes

Single-line//

Multi-Line/* * *

Document/** * * Useful for generating Javadoc standard packages

2.2.2

Identifier: The name of a variable constant function statement block in Java, collectively known as an identifier. A string of alphanumeric underlined dollar signs that begins with the letter underscore $. The first cannot be a number, the identifier cannot be a keyword

java1234 Tutorial Series notes S1 Java SE to eclipse preliminary use, comments, identifiers

Related Article

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.