Today we talked about several topics. First we saw how to produce text output files using PrintStream objects (slide set ch06-4, the last few slides). We also saw how to pass arrays as parameters and use them as return values; most importantly, that they use reference semantics (slide set ch07-3). The Sections3.java program demonstrates these ideas. Next we talked about null, which is a reference that does not refer to any object. The HoursWorked2 program shows an example usage of null. We also saw that arrays of objects initially store null for each element.

The Names.java is an extra program that demonstrates an array of Strings, in case you want such an example to help you with Homework 7.