Activities

If your head isn't going in circles from all this looping, review the topics of this hour with the following activities:

  • Modify the Repeat program so that it uses a for loop instead of a while loop, and compare the efficiency of each approach.
  • Write a short program using loops that finds the first 400 numbers that are multiples of 13.

To see Java programs that implement these activities, visit the tutorial's website at http://www.java24hours.com.

      
Comments