My B&S Assignmnet requirement for find as below: // 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".) public int  find(String  criteria) throws RecordNotFoundException;
So the criteria[n] must match with database field[n]?
E.g. Data = name Data = location Data = specialties Data = size Data = rate Data = owner
let say criteria value as below: criteria = My name criteria = null criteria = My specialties criteria[3..5] = null
So I need loop through all record and match the name and specialties value in database again the value in criteria?
Rgds,<br />Song Jing
Jeroen T Wenting
posted 10 years ago
yes, that's the idea.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads