Answer:
Yes.
End of the Chapter
A more realistic program would allow the user to enter the name to look up. But in this program, the user would have to enter the target name exactly correct. Even upper and lower case letters much be correct. A better program would allow inexact matches, but this is more complicated.
You have reached the end this chapter. You may wish to search through the following topics for something of interest.
-
How an
array of
Stringreferences works. - A frequent bug with arrays of references.
- Avoiding null references in an array.
- Linear Search algorithm.
- Analysis of algorithms.
- Implementation of linear search.