the third edition, there will be no reliance on the author-defined javabook
classes. For the two previous editions, I included javabook classes so
the students can start programming without learning the details of how
to perform input and output in Java. Through the use of the provided javabook
classes, I also tried to illustrate and reinforce the key concepts of
using objects. Many people indicated their preference of not using any
author-defiend classes. They like to keep the discussion strictly to the
standard classes. I removed the reliance on the use of the javabook classes
in the third edition.
I still provide the
javabook classes for those who wish to continue using them. You do not
have to use any of the javabook classes to study the book, but you may
want to use them for a quick, simple, and reliable GUI-based input and
output. If you decide to use javabook classes, please
make sure to read the relevant information on the Compiler
How To page so your programs can use the javabook classes correctly.
For those who are interested in playing with Turtle Graphics,
download the galapagos package. If you plan to
play with the galapagos package, make sure to read the accompanying sample
download, click the link below...
package includes the javabook classes. A new class MiniBrowser is
added to the package. These classes are implemented using the Swing
is the documentation for the Swing-based javabook package in the
standard javadoc style. To view the documentation, you need to
download the zipped file and unzip the downloaded zip file first.
Double-click the file index.html.
You can also view the complete documentation without downloading
by clicking here.
Oct, 2004 to make the package compatible with the newly added
reserved word enum in Java 5.0.
contains the Java classes for Turtle Graphics. Although I did
not incorporate any Turtle related topics in the main text, I
ask to use turtles in several chapter exercises. At this point,
I have only javadoc documentation for the galapagos package. I
hope the sample programs included in the zip file is enough for
you to get started. You can view the sample programs online by
clicking here. Note:
the file is in PDF format and the color of the screenshots is
lost when converting the original file into the PDF format. Sorry.
You just have to run the programs on your machine to see the drawings
in living color. 8-)
public void print(String text)
method to "print" the passed text at the current position
of a turtle. You need to use this method for solving Exer 3.28,
is the documentation for the galapagos package in the standard javadoc
style. To view the documentation, you need to download the zipped
file and unzip the downloaded zip file first. Double-click the file
index.html. You can also view the complete
documentation without downloading by clicking