
13.6 Programming Activity 2: The Towers of Hanoi 975
Instructions
In the Chapter 13 Programming Activity 2 directory on the CD-ROM
accompanying this book, you will find the source files needed to complete
this activity. Copy all of the files to a directory on your computer. Note that
all files should be in the same directory.
Open the HanoiClient.java source file. Searching for five stars (*****) in the
source code will position you to the code section where you will add your
code. In this task, you will fill in the code inside the recursiveTOfH method
to solve the Towers of Hanoi problem. Example 13.9 shows the section of
the HanoiClient source code ...