Java Reference
In-Depth Information
Figure C.1
The Java API Specification
as its name, parameters, and return type, followed by a one-sentence description. You
can click the name of the item to see more details about it.
For example, the following is the summary information for the
Scanner
class's
constructor to read input from a file:
Constructor Summary
]
Scanner
(
File
source)
Constructs a new
Scanner
that produces values scanned from the specified file.
Clicking on a method can provide useful details about how to use it, including a
longer description, a detailed explanation of each parameter that the method requires, a
description of what kind of value (if any) the method returns, and a listing of any excep-
tions the method may throw. These detail views allow you to learn the preconditions and
postconditions of the method and to see examples of calls and their results.
For example, the following are the details about the
substring
method of the
String
class:
Search WWH ::
Custom Search