Java Reference
In-Depth Information
public variables in the class. The second table lists and defines the class constructors. The third table describes
all the public methods. After the three tables, there are more detailed explanations of each variable, constructor,
and method.
8.
Scroll down to the length() entry in the method list table (the third table, see Figure 2-22 ).
Figure 2-22.
From left to right, each method entry explains:
A. What the method returns . In this case, the length method returns a variable of type int (integer). We will
discuss int variables in a little while.
B. The method signature (i.e., the method name and parameters the method is expecting). In this case, the
length method expects nothing, indicated by the empty parentheses. Notice that the other methods in Figure 2-22
expect at least one parameter.
C. What the method does . The length method returns the number of characters assigned to the string
(i.e., the length of the string).
9.
Click the length method name.
The detailed documentation for the method will be displayed.
When you are having trouble understanding a class, remember this site. It has lots of useful information.
Tutorial: Changing RAD Perspectives
Now let's begin:
1.
If needed, switch to the RAD session and resize the source code pane.
2.
In the Package Explorer pane, scroll back to the top of the navigation tree.
3.
Click the JRE System Library expansion box to close all the sub-trees.
4.
Click the “Open a Perspective” icon (see Figure 1-5 ).
 
Search WWH ::




Custom Search