Java Reference
In-Depth Information
Note that the program FirstJavaProgram is the same as that discussed in Example 2-26
in Chapter 2.
Java Style Documentation
In this topic, whenever we designed a class, among others, we provided an explanation of the
methods. We also noted that Java provides a wealth of predefined classes. For example, if you
visit the Web site http://java.sun.com/javase/6/docs/api or http://java.sun.com/javase/7/docs/api
you can find a description of the class String as shown in Figure D-17. (Note that the
URL locations of these api documentations may change without any notice.)
FIGURE D-17 The class String
This description of the class String as shown in Figure D-17 is Java style documenta-
tion. You can also produce this type of documentation for the classes you design using the
command javadoc . We illustrate how to produce the Java style documentation of the
class Clock , designed in Chapter 8.
 
Search WWH ::




Custom Search