Source of 9.3.java


  1: /** Counts down from a given positive integer.
  2:     @param integer  An integer > 0.
  3:     @author Frank M. Carrano, Timothy M. Henry
  4:     @version 5.0
  5: */
  6: public static void countDown(int integer)
  7: {
  8:    System.out.println(integer);
  9:    if (integer > 1)
 10:       countDown(integer - 1);
 11: } // end countDown