For (Control Java process, arbitrary)

Source: Internet
Author: User

1. Break jumps out of the loop inside the loop

2. Continue end this cycle and start the next cycle

3. In a double loop, the outer loop is one time, then the internal loop all times

4. And when using the double loop to output the graph, the external loop control the number of rows, the internal loop control the number of columns

5. The Do/while loop is similar to the while loop, but the Do/while loop executes at least once, meaning that the loop statement is executed once in the Do/while loop before being judged

6. In the For loop, continue causes the control flow to immediately jump to the UPDATE statement

7. Control flow in the while or Do/while loop immediately jumps to the Boolean expression

Two: SELECT statement

1. If statement: if (Boolean expression) {}; if (Boolean expression) {} else{}; if (Boolean expression) {}else if{}

2. Switch statement: switch (variable) {case value: break;}

Three: Circular statements

1. For loop: for (int a=0;a<10;i++) {} and (Boolean-expression) {} do{}while (boolean expression);

2. Both the selection statement and the Loop statement can be set to each other

For (Control Java process, arbitrary)

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.