While Loops (or Indefinite Loops)
Here are lecture slides for and program examples.
-
Lecture slides on While and Switch
-
Collatz.java
-
ConvertToBinary.java
-
ConvertToBinaryInAction.java
-
CountDownWhile.java
-
ReceiveAndAdd.java
-
ReceiveAndAddAlt.java
-
SelectionByChar.java
-
SelectionByNumber.java
-
SelectionByString.java
-
ThrowDice.java
Go back to the lecture page
Go back to the home page