Java Reference
In-Depth Information
What You Should Know
Having completed this chapter, you now should be able to perform the tasks
shown in Table 4-18.
Table 4-18
Chapter 4 What You Should Know
TASK NUMBER
TASK
PAGE
1
Start TextPad and Save a TextPad Document
224
2
Enter Beginning Code
226
3
Compile and Test the Program Stub
227
4
Enter Code for the getSales() Method
230
5
Compile and Test the getSales() Method
232
6
Code an if Statement to Test the Cancel Button
237
7
Code the try and catch Statements
243
8
Enter Code to Throw an Exception
244
9
Compile and Test the try and catch Statements
245
10
Enter Code for the while Statement
249
11
Compile and Test the while Statement
250
12
Enter Code for the getCode() Method
252
13
Compile and Test the getCode() Method
253
14
Enter Code for the getComm() Method
256
15
Code the output() Method
259
16
Enter Code for the finish() Method
261
17
Compile and Test the Application
261
18
Create the HTML Host Document
263
19
Code the Applet Stub
265
20
Compile and Test the Applet Stub
265
21
Enter Code to Declare Variables and Construct a Color
267
22
Construct Applet Components
270
23
Code the init() Method
272
24
Compile and Test the init() Method
273
25
Enter Applet Code for the try and catch Statements
277
26
Enter Applet Code for the getSales() Method
278
27
Enter Applet Code for the getCode() Method
279
28
Enter Applet Code for the getComm() Method
280
29
Enter Applet Code for the output() Method
281
30
Enter Applet Code for the paint() Method
283
31
Compile and Test the Applet
283
32
Quit TextPad
286
 
Search WWH ::




Custom Search