HOME | Overview | Syllabus | Instructor | Lectures | Laboratories | Readings | Assignments | Resources | Other Links
CS 1713 Lecture 5: An Overview of a Java Program
September 10, 1999
One more time... to get it right:

Most of the examples in Chapters 2 and 3 of the textbook use a case study based on ConvertFabric program (Fig. 2.3) and the PieceOfFabric class (Fig. 2.2). In this lecture we will examine the structure of a Java program using this case study.

  • Develop and run the ConvertFabric program (Fig. 2.3) and the PieceOfFabric class (Fig. 2.2) under Java WorkShop.

  • Look at overall structure of code in Fig. 2.2 and Fig. 2.3:

  • Go over key words (reserved words) used in code of Fig. 2.2 and Fig. 2.3: These terms are summarized in Table 2.1 of the text on page 49.

  • Look at, trace and compare the structure of two Java programs that develop and test a class representing a rectangle (handout):


    Objective: To be able to read a simple Java program and understand what it does.
    Last revision: September 9, 1999 at 9:30 am