Java Reference
In-Depth Information
Figure 13
The API Documentation for the Rectangle Class
The API documentation for each class starts out with a section that describes the
purpose of the class. Then come summary tables for the constructors and methods (see
Figure 14 ). Click on the link of a method to get a detailed description (see Figure 15 ).
As you can see, the Rectangle class has quite a few methods. While occasionally
intimidating for the beginning programmer, this is a strength of the standard library. If
you ever need to do a computation involving rectangles, chances are that there is a
method that does all the work for you.
51
Search WWH ::




Custom Search