September 2005
Beginner
576 pages
13h 6m
English
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 book's website at http://www.java24hours.com.
Read now
Unlock full access