Source of FibonacciTest.java


  1: // Fig. 15.6: FibonacciTest.java
  2: // Testing the recursive fibonacci method.
  3: 
  4: public class FibonacciTest
  5: {     
  6:    public static void main( String args[] )
  7:    {
  8:       FibonacciCalculator fibonacciCalculator = new FibonacciCalculator();
  9:       fibonacciCalculator.displayFibonacci();
 10:    } // end main
 11: } // end class FibonacciTest
 12: 
 13: /*************************************************************************
 14: * (C) Copyright 1992-2005 by Deitel & Associates, Inc. and               *
 15: * Pearson Education, Inc. All Rights Reserved.                           *
 16: *                                                                        *
 17: * DISCLAIMER: The authors and publisher of this book have used their     *
 18: * best efforts in preparing the book. These efforts include the          *
 19: * development, research, and testing of the theories and programs        *
 20: * to determine their effectiveness. The authors and publisher make       *
 21: * no warranty of any kind, expressed or implied, with regard to these    *
 22: * programs or to the documentation contained in these books. The authors *
 23: * and publisher shall not be liable in any event for incidental or       *
 24: * consequential damages in connection with, or arising out of, the       *
 25: * furnishing, performance, or use of these programs.                     *
 26: *************************************************************************/