Java Reference
In-Depth Information
2. Type \t\t\t after the quotation mark in line 18.
The escape code characters are displayed as part of the String argument
(Figure 2-39). The three horizontal tab escape characters will cause the
insertion point to move 24 spaces to the right — eight spaces for each
escape character — before outputting the words to the screen.
escape
characters
FIGURE 2-39
3. Position the insertion point between the quotation mark and the letter D
in Daily in line 19. Type \t\t\t after the quotation mark in line 19.
The println() methods in lines 18 and 19 display escape characters in their
String arguments (Figure 2-40).
Print button
escape
characters
FIGURE 2-40
The final edit is to insert the line of code to display the system date
constructed by the Date constructor in line 16. As shown in line 20 of
Figure 2-33 on page 79, the code is changed to use the variable currentDate,
 
Search WWH ::




Custom Search