CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ

Control

Control Statements
Break and continue

When a break statement executes witin a loop, the loop terminates and program control passes to the first statement following the loop.

The continue statement allows the loop to jump up to its first line and retest the loop exit condition.

Previous | Break and continue | break | continue | Next