Section V class

Loop structure do. . . while loop
basic configuration do {
execute the statement
} while (loop condition);
while loop and do. . . while loop is similar to the basic function, but do. . . statements must be executed while a cycle, a minimum of one cycle of
nested loops, refers to a syntax structure in the loop defines a loop in the loop. The most common time for a nested loop nested
format: for (initialization expression; cycling conditions; operation expression) {
. . . for (initialization expression; cycling conditions; operation expression) {
execute the statement
. . . .
}
. .
}
Jump statement break statement
can be used in a switch statement break conditional statements and loop statements. He appeared in a switch statement to terminate a case and out of the switch statement
continue statement
continue statement is used in the loop body, his role is to terminate this cycle, the next cycle execution.

Guess you like

Origin blog.51cto.com/14589613/2449247