Use of Eclipse
1. Run by clicking on "triangle Icon" or right click Run as
2.
3.
Java Syntax specification
1, parentheses to appear in pairs
2, each sentence code should have a semicolon end
3. Java syntax is case-sensitive
4. A file can only write a class declaration with public, and must also match the file name.
There can be no more than one decorated symbol with public in a file
5. Do not include keywords and illegal characters when writing names (letters and underscores can begin, or you can end with numbers)
6, Java code syntax is all half-width symbol
7, learn to write code.
Good habit of writing code:
1, often press to save, write a sentence or a few sentences to press once Ctrl+s
2, the first time the new file name
3, do not put the file on the desktop and not the name, the future may be deleted as garbage
4. To back up and write logs every day
5, to see the error, to be happy, again to the level of Ascension time came
Comments
1. Single-line Comment
This is a comment
2. Multi-line annotations
/* This is a multiline comment this is a multi-line comment */
3. Documentation Notes:
/** * Eclipse uses and Java syntax rules * @author 1234 */
The contents of the comment are not compiled into the class file.
Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.
Eclipse usage vs. Java syntax rules