Java Reference
In-Depth Information
Testing the Search Capabilities
The following steps show how to test the search() method by searching the
arrays for a specific title, studio, and year in order to verify that all three searches
work properly.
To Test the search() Method
1. Click Edit on the menu bar and then point to Search.
The program displays three Search options on the Search submenu
(Figure 7-45).
Search
command
Search fields
FIGURE 7-45
2. Click by Title on the Search submenu. When the dialog box asking for
the title is displayed, type The Wizard of Oz in the text box and then
click the OK button.
The search() method displays just one movie (Figure 7-46).
one movie
is displayed
FIGURE 7-46
 
Search WWH ::




Custom Search