The use of Eclipse and the identifiers and keywords of Java programs

Source: Internet
Author: User

Use of Eclipse

(1) Creating a Java Project

Select the file/new/Java Project command, enter the project name in the New Java Project dialog box that pops up, then click Next, and finally click Finish.

(2) Creating a Java class file

Select the file/New/Class command, enter a name and select the public static void main (string[] args) check box, and finally click Finish.

(3) Writing Java code

Enter "System.out.println ();" In {}, then enter the text you want to express in (), note that you want to add "" to both sides of the text, and click Run.

You can also enter sysout and then use alt+/quick completion.

PS: If the input is "print" instead of "println", its output will not be automatically branch.

Alternatively, right-click on the current line number to set a breakpoint or cancel the breakpoint, which will let the program stop at this point and continue running if the second click is run.

Java Identifiers and keywords

(1) Identifiers

An identifier is a name used to identify a valid sequence of characters for a class name, variable name, method name, array name, and file name. It consists of letters, numbers, underscores, dollar signs, and the first symbol cannot be a number.

PS: Identifiers are case-sensitive.

(2) Keywords

Keywords are words that have been given a particular meaning in the Java language and cannot be used as identifiers. The keywords are shown in the following table.

Use of Eclipse and Java program identifiers and keywords

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.