Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Thanks for all,and ask again.
Posted by Lu Ping on November 30, 2000 at 2:17 AM
Now I came to Chapter 6,about Guaranteeing proper cleanup. I compile and run c06:PlaceSetting.java,the output is like : Shape constructor Shape constructor Drawing a Line: 0, 0 Shape constructor Drawing a Line: 1, 1 Shape constructor Drawing a Line: 2, 4 Shape constructor Drawing a Line: 3, 9 Shape constructor Drawing a Line: 4, 16 Shape constructor Drawing a Line: 5, 25 Shape constructor Drawing a Line: 6, 36 Shape constructor Drawing a Line: 7, 49 Shape constructor Drawing a Line: 8, 64 Shape constructor Drawing a Line: 9, 81 Shape constructor Drawing a Circle Shape constructor Drawing a Triangle Combined constructor CADSystem.cleanup() Erasing a Triangle Shape cleanup Erasing a Circle Shape cleanup Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at CADSystem.cleanup(CADSystem.java:73) at CADSystem.main(CADSystem.java:81) I don't know why it has a exception, is it the ideal result of the example?
Replies:
|