CS 136 Tutorials - Spring 2007

Tutorials »

Tutorial 9: Hello Java (June 29)

Today's tutorial is a basic overview of how to use Dr. Java to write simple classes with some interaction. We will also cover the basic standards and conventions for documentation, formatting, and testing. The material for this tutorial is related to Lecture Module 8 (see handouts).

  1. A single class: Endpoint
  2. In the skeleton code for today's tutorial, you will find the Endpoint class, which represents a single endpoint for an interval on the real number line. Already written are the three private fields double location, boolean infinite, and boolean closed, as well as two constructors. Read over the documentation in the class so that you understand what these fields are for and how the constructors are used.

  3. A dependent class: Interval
  4. Adding some new methods
  5. Tutorial feedback
  6. Please take a minute to briefly answer the following questions so we can make sure these tutorials stay useful and enjoyable:

    1. What do you like about the tutorials themselves?
    2. What don't you like about the tutorials (what could be improved)?
    3. Is the pace too slow, too fast, or just right?
    4. Is the material covered relevant, or should we be focusing on some other topics?
    5. Any comments on the (in)effectiveness of your tutorial instructor?
    6. Any additional comments about anything relating to CS136?

    Thanks for your (anonymous) feedback, and know that we will take your comments into consideration.

Last modified on Saturday, 11 August 2018, at 22:52 hours.