Hey there
I am currently developing my solution for the OCMJD assignment (Bodgitt and Scarper v.2.3.1), and I guess that I found a contradiction between the instructions (the html file) and the provided interface. The think is that instructions says:
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user
and comments in the method 'find(
String[] criteria)' in the interface says:
Returns an array of record numbers that match the specified criteria. Field n in the database file is described by criteria[n]. A null value in criteria[n] matches any field value. A non-null value in criteria[n] matches any field value that begins with criteria[n]. (For example, "Fred" matches "Fred" or "Freddy".)
I guess, that I should take the instructions in the html file as the correct way to go and search for the exact matches, but I would like to know the guru's opinion on this
Thanks in advance for any help!