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  , .... [break;] case value2:  , ... &NBS P [break;] case value3:  , .... &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