While Loops (or Indefinite Loops)

Here are lecture slides for and program examples.

  1. Lecture slides on While and Switch
  2. Collatz.java
  3. ConvertToBinary.java
  4. ConvertToBinaryInAction.java
  5. CountDownWhile.java
  6. ReceiveAndAdd.java
  7. ReceiveAndAddAlt.java
  8. SelectionByChar.java
  9. SelectionByNumber.java
  10. SelectionByString.java
  11. ThrowDice.java

Go back to the lecture page

Go back to the home page