
8.4 Programming Activity 1: Working with Arrays 495
Our framework will animate your algorithm so that you can watch your
code work. For this to happen, be sure that your for loop calls the animate
method. The arguments that you send to animate will differ depending on
the task you are coding. Detailed instructions for each task are included in
the code.
To test your code, compile and run the ArrayPractice1 source code. Figure
8.18 shows the graphics window when the program begins. Because the
values of the array are randomly generated, the values will be different each
time the program runs. To test any method, click the appropriate button.
Troubleshooting ...