First week of Java Foundation

Source: Internet
Author: User

1, with a For loop can be used and array of cross-use, and some can be replaced, which is convenient to use which.

2, String m= "ABCD"; char []q=m.tochararray (); After this sentence can achieve 2 functions, (1): The string is coerced into an array, (2): The value of M, into a single character, once assigned to q[];

3, if the array is not assigned a value, then char is a space; string is null; Boolean is False;short, Long,double,int,,float is 0;

4, Exchange worthy words, must define an empty bottle; useful for sorting types;

5, for the loop inside the variable can change itself, not necessarily with the condition variable, do not limit the thinking, you define the variable n; then n++;

6, precision, shaping < character < floating point;

7,? "--": "--"; Trinocular operator to remember;

8, sum=sum+360; can be written, sum+=360;

First week of Java Foundation

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: 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.