Chapter 4. Flow Control

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Part I:  Java Foundation


You will learn about the following in this chapter:

  • if-then-else statements

  • switch statements

  • while loops

  • do loops

  • for loops

This chapter addresses two new categories of statements: conditional and loop. Conditional statements enable you to execute a subset of your code depending on specific criteria, and loop statements enable you to execute a subset of your code multiple times.


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net