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