Java Basic Grammar < four > control flow

Source: Internet
Author: User
The Ifwhiledo whilefor switchcasecase tag can be:
  • The type is char, Byte, short, or int (or its wrapper class character, Byte, short, and integer). The constant expression
  • Enumeration constants
  • Starting with JavaSE7, the case label can also be a string literal
The interrupt control Flow statement breaks the break statement without a label. can be used to exit a loop statement with a tagged break statement that jumps out of multiple nested loop statements. (the label must be placed before the outermost loop you want to jump out and must be immediately followed by a colon) to apply the label to any statement, or even to the header of the IF statement or block statement that continue control to the most memory loop.

Java Basic Grammar < four > control flow

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.