Basic learning and learning

Source: Internet
Author: User

Basic learning and learning

For (1; 2; 3) 4 execution sequence 1, 2, 4, 3; can be omitted in one sentence {}.

Switch (xx) {case xx :... break}; Do not forget break after execution, otherwise case penetration will occur; switch can only detect int type values; if it does not conform to case, defalut will be executed; case 1:

Case 2: case 3:... break; defalut; 3 if 123 is met.

The difference between while and do-while is that the first is to judge the execution, and the second is to execute the judgment first.

What is the difference between break and continue? 1. It is used to force exit the loop in the loop, and 2. Force exit the loop to continue the next loop;

JAVA method:

Public static void fanfa (String str ){...}

 

C = a> B? A: B --> if A is greater than B, then C = A returns A. If A is less than B, C = B returns B.

 

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.