Java - Loop

> Procedural Languages > Java

1 - Branching

1.1 - Continue

  • The continue statement skips the current iteration of a for, while , or do-while loop.

1.2 - Break

The break statement has two forms:

  • unlabeled.
  • and labeled

An unlabeled break will terminate a for, while, or do-while loop.

An unlabeled break statement terminates the innermost switch, for, while, or do-while statement, but a labeled break terminates an outer statement.

Advertising
lang/java/loop.txt · Last modified: 2017/02/12 21:05 by gerardnico