Hey guys,
I am looking at my find(), and I am not sure if I have things like they want them. The find() Javadocs state:
// 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".)
But I am unclear as to what the following code should return:
Should the method return records that only contain both "Castle" in the first column of the database and "Smallville" in the second, or that contain either?
I'm confused as to what they want exactly. It seems to me to make more sense that if both are provided, both should match in that order if there is to be a match.
Thanks for your input.
Matt