Branching
of execution
As we began to investigate in the previous
unit, Java offers 3 kinds of branch of execution flow:
-
method calling
-
selection
-
iteration
In the previous unit you learnt about
a simple form of selection: are the if
statement. In this unit we introduce
an extended version of selection: the if...else
statement, and also an iteration
statement: while.
RITSEC - Global Campus
Copyright © 1999 RITSEC- Middlesex
University. All rights reserved.
webmaster@globalcampus.com.eg
|