Java Arena

Module 8

Repeating with while

Repeating with while. Loops that run until something happens (while true and break), skipping a round with continue, and the three things loops most often do with what they read, which are counting, summing and averaging.

Steps

  1. while (true) and break
  2. continue
  3. Counting in a loop
  4. Summing in a loop
  5. Averages after the loop