Basic HTML version of Foils prepared 19 July 97

Foil 10 Java Language -- Control Flow I

From Java Tutorial - Summer 1997 Part II: Java Language and Object-Oriented Concepts CEWES Tutorial -- July 22-25 1997. by Nancy J. McCracken,Geoffrey C. Fox

application examples for Foil 10
1 if(some boolean expression) { .. }
2 else { ... }
  • Nested: if(some boolean expression) { .. }
    • else if(another boolean) { .. }
    • else { ... }
3 while(any boolean) { /* Do Stuff */ }
4 do { /* What to do */ } while (another boolean);
5 for(expression1; booleanexpression ; expression2) { ...}
  • naturally starts with expression1, applies expression2 at end of each loop, and continues as long as booleanexpression true

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998