02115 Java Programming | ||
Autumn 2011 |
The mandatory assignment is related to the subject of Chapter 13.
I think it's a good idea to study in detail the class structure,
the responsibilities of each class, the chosen data structures
and how the classes work together in the two projects
foxes-and-rabbits (Chapter 10) and address-book
(Chapter 12).
By solving the mandatory assignment you make the final steps
towards being able to develop well structured applications
like the above mentioned two projects. And not to forget:
Write a documentation of the work carried out, including
testing.
The lectures last week and this week has also taken examples of the
PS textbook to supply sections 12.4 - 12.10 of the BK
textbook. E.g. section 12.4.5 is useful: On how to avoid creating objects
when the parameter values given to a constructor does not make sense.
And what about object serialization ? (supply with PS section 23.12)
Follow up from the BK textbook what's needed, for Chapter 12 look at:
The overview given on pages 110-111 is important, but it's
difficult to handle how streams can/should be created from
other streams.
The creation of the BufferedReader
instance
r
in Example 140 is explained in the
lines 10-13 of page 111.
The examples of section 12.9 of the BK textbook
give some simple examples of creating streams from other
streams
The PS lecture examples from last week were Example 89, Example 80 (refer to the ready-to-run example program), and Example 90
Newest edition: 30. September (minor textual corrections)
Previous editions:
- 27. September