Eclipse usage vs. Java syntax rules

Source: Internet
Author: User
Tags webp

Use of Eclipse

1. Run by clicking on "triangle Icon" or right click Run as
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ Ffffzticlqoliaofckmhlw1lt36gq7jmegffv1vxnx8tk5nb13a9xffngbbrvjuo2iiad2bokk6asmmrkahcedbibg/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt= Jpeg&tp=webp&wxfrom=5&wx_lazy "/>
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ Ffffzticlqoliaofckmhlw1lt36gq7jmegqciaeulbocqibrkppeo3g9elobiawhsfnkjkbzjmzuiwlmhiakmihbmvgq/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt= Jpeg&tp=webp&wxfrom=5&wx_lazy "/>
2.
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ Ffffzticlqoliaofckmhlw1lt36gq7jmegbfdcwy08xweps8vmudyeia0bhao68g2puceqic7v4bu0rxmkuachsr2a/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt= Jpeg&tp=webp&wxfrom=5&wx_lazy "/>
3.
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ Ffffzticlqoliaofckmhlw1lt36gq7jmeg8iqvb6riafbkexhkpjqlciatsyz15ylsoficsezps9iazrmuzh3e0aibrbg/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt= Jpeg&tp=webp&wxfrom=5&wx_lazy "/>

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.
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ ffffzticlqoliaofckmhlw1lt36gq7jmegrq1yn7srsbgcppry8cg968mjymnhd0qbd9qunzfgcuohuvqemxrpvw/640?wx_fmt=jpeg& Tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy "/>
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ Ffffzticlqoliaofckmhlw1lt36gq7jmegqweue65bqafvimfe1wqmhqwricrfgbs30cuvibtwzv2evqiyeprmjfvq/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt= Jpeg&tp=webp&wxfrom=5&wx_lazy "/>
There can be no more than one decorated symbol with public in a file
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ Ffffzticlqoliaofckmhlw1lt36gq7jmegilmh4xdbtsgj86xerr4icnqulfiazyeyw2mbhibxjk7iuwicy67xicv8t8w/640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt= Jpeg&tp=webp&wxfrom=5&wx_lazy "/>
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
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz_jpg/ ffffzticlqoliaofckmhlw1lt36gq7jmegsfbmziakurlmn36jprhwuyugxhcnxksnsfmjau00ea3a50plegow9ha/640?wx_fmt=jpeg& Tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=jpeg &tp=webp&wxfrom=5&wx_lazy "/>

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

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.