Java Reference
In-Depth Information
Using the Java API
The Java API is a good tool to look up information about a class with which you
may be unfamiliar or to check the syntax of commands and methods you wish
to use in your programs. While connected to the Internet, open a browser, type
http://java.sun.com/j2se/1.5.0/docs/api/ in the Address window, and
then press the ENTER key to view the Java API Specification on the Sun Web site.
The Java API is organized by packages, hierarchically, but many programmers
click the Index link located at the top of the page to display the entire list alpha-
betically.
With the Java API Specification open in the browser window, perform the
following steps.
1. Use the scroll down arrow in the top left frame of the Web page to display
the java.lang link. Click the java.lang link.
2. When the Package java.lang page is displayed, scroll down to display the
Class Summary table. Click the System link in the left column of the table.
3. When the Class System page is displayed, scroll down to display the Field
Summary table and click the out link in the right column.
4. When the out definition is displayed (Figure 2-72), select the definition by
dragging through it. Click File on the menu bar and then click Print. When
the Print dialog box is displayed, click the Selection option button and then
click the Print button in the Print dialog box to print the definition.
top left
frame
Java API
Web site
PrintStream
link
scroll up
arrow
out definition
scroll down
arrow
FIGURE 2-72
Search WWH ::




Custom Search