Hi all,
In my assignment it says for the User Interface:
"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."
For the method find(
String[] criteria) it 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'm confused.
Does this mean that:
There are two types of search functionality needed in the GUI:
1. Exact name matching for name and/or location.
(for example: dropdown box with search button)
2. Fuzzy searching on any cell value
(for example: text field for free format text with search button)
You could make use of the described find() method for both search options, but one might bite the other: you search with exact name matching eg location "York" but will then also get the results because of this method for "Yorkshire".
How do you guys interpret both reqs as a consistent whole?
Thanks,
Josine