More Exercises for Java Outside In
More Exercises for Java Outside In
- Chapter 1
-
What does the picture on the cover of the paperback edition of
JOI represent? Why is it appropriate? (If you have the hardback
version you can see the picture on the CD or this web page).
- Modify the Bank so that the transaction prompt shows the current
account number.
- Chapter 2
-
Find all the places in
Temperatures.java
(or some other
Java code)
in which a message is sent to an
object that's
not
a Terminal
. (There are so many of those that
including them in this discussion would be tedious.) For each one,
identify
- the name of the message,
- the name and type of the object receiving the message,
- the type of the arguments (the information sent along
with the message),
- the file in which you would expect to find the corresponding
method (you need not find that file) and,
- the type of value returned by the method.
- An exercise asking for the use of
DecimalFormat
objects.
- Chapter 3
- Chapter 4
- Add
.
and ..
to the output
specified for a Directory listing.
Back to the
JOI home page.