public class GradeBookTest
1: // Fig. 7.15: GradeBookTest.java
2: // Creates GradeBook object using an array of grades.
3:
4: public class GradeBookTest
5: {
6: // main method begins program execution
7: public static void main( String args[] )
8: {
9: // one-dimensional array of student grades
10: int gradesArray[] = { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87 };
11:
12: GradeBook myGradeBook = new GradeBook(
13: "CS101 Introduction to Java Programming", gradesArray );
14: myGradeBook.displayMessage();
15: myGradeBook.processGrades();
16: } // end main
17: } // end class GradeBookTest
18:
19:
20: /**************************************************************************
21: * (C) Copyright 1992-2005 by Deitel & Associates, Inc. and *
22: * Pearson Education, Inc. All Rights Reserved. *
23: * *
24: * DISCLAIMER: The authors and publisher of this book have used their *
25: * best efforts in preparing the book. These efforts include the *
26: * development, research, and testing of the theories and programs *
27: * to determine their effectiveness. The authors and publisher make *
28: * no warranty of any kind, expressed or implied, with regard to these *
29: * programs or to the documentation contained in these books. The authors *
30: * and publisher shall not be liable in any event for incidental or *
31: * consequential damages in connection with, or arising out of, the *
32: * furnishing, performance, or use of these programs. *
33: *************************************************************************/