A good answer might be:Yes, of course. In fact, it can be simplified. | |
Linear SearchLinear search can be simplified if it does not have to test each array entry for null. Here is some code with search() partially finished:
Recall that search() returns either a reference to the correct entry, or null if the entry could not be found. | |
QUESTION 20:Complete the search() method. Click Here after you have answered the question |