The while Statement
If the condition of a while statement is false initially, the statement is never executed
Therefore, we say that a while statement executes zero or more times
See Counter.java, Factors.java, and Powers_of_Two.java
Previous slide
Next slide
Back to first slide
View graphic version