Previous Section  < Day Day Up >  Next Section

Activities

You can review the topics of this hour more fully with the following activities:

  • Expand the Elvis program to track the weight if it were incremented upward by one pound for three straight days (Krispy Kreme donut binge).

  • Create a short Java program that uses an x integer and a y integer and displays the result of x squared plus y squared.

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

    Previous Section  < Day Day Up >  Next Section