Java Reference
In-Depth Information
2. With the insertion point in line 19, type a closing brace and then press
the ENTER key.
The closing brace for the main() method automatically aligns with the open-
ing brace for the main() method (Figure 2-25).
closing brace
aligned with
opening brace
closing brace
completes body
of main method
FIGURE 2-25
3. With the insertion point in line 20, type a closing brace.
The closing brace for the class is displayed aligned with its opening brace
(Figure 2-26).
Save button
closing brace
aligned with
opening brace
closing brace
completes
the class
FIGURE 2-26
OTHER WAYS
4. With the Data Disk in drive A, click the Save button on the Standard
toolbar.
Because the file previously was saved to the Data Disk in drive A, TextPad
automatically saves the file in the same location using the same file name,
Welcome.java. The old version of the file is replaced with the new, edited
file.
1. Type code, press
CTRL + S
2. Type code, press
ALT + F , S
3. Type code, click
Save on File menu
 
Search WWH ::




Custom Search