关于break 和 continue(About break and continue)

在使用 Java 循环中;

break 和 continue 都是跳出循环,break 是完全退出循环,continue只是退出单次循环,如果循环条件满足 继续下次循环;

在退出时候,break 和continue 的循环体中 之后的语句不执行

————————

In using java loops;

Break and   Continue is to jump out of the cycle, break is to completely exit the cycle, and continue is to exit a single cycle. If the cycle conditions are met, continue the next cycle;

When exiting, the statements after break and continue in the loop body are not executed