Java Private Learning Notes--3rd Chapter Process Control

Source: Internet
Author: User

3.1 Branch Structure 3.1.1 If statement structure      if () {      }else{      } 3.1.2 Conditional operators      condition? expr1:expr2  3.1.3 SWITCH statement structure      switch () {          Case Value1:&nbs P             &nbsp, ....           [break;]           case value2:              &nbsp, ...   &NBS P       [break;]           case value3:              &nbsp, ....     &N Bsp     [break;]      } 3.2 loop structure 3.2.1 While loop structure      while (Boolean) {         / /Loop body      } 3.2.2 Do-while loop structure      do{          //cycle Body & nbsp    }while (...);  3.2.3 for loop structure      FOR (...;.);) {          //loop body      } 3.2.5 break statement and continue statement &nbs P The function of the    1.break statement           break statement is to end this loop, and the control goes to the back of the loop where it is executed. Exits directly for various loops.      2.continue statements           It only grows to perform the current iteration, resulting in control starting from the next iteration.

Java Private Learning Notes-3rd. Procedure Flow Control

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.