Java Reference
In-Depth Information
3. Enter lines 523 through 532 as shown in Figure 12-41 on page 825.
TextPad displays the code to add a user's new stock holding to the database
(Figure 12-54). The stock symbol is trimmed and changed to uppercase
before the data access class method is called.
trim() method
addToUserStocks()
method
synchronized keyword
FIGURE 12-54
4. Enter lines 533 through 545 as shown in Figure 12-42 on page 826.
TextPad displays the code to delete a stock from the user's stock holdings
(Figure 12-55). A new list of stock holdings is added as the stock's attribute.
If the stock's attribute previously existed, it is replaced.
delStock()
method
FIGURE 12-55
 
Search WWH ::




Custom Search