The following is the comment of the find method from my Data class. From the body of the method, I can tell it is using the first element of the
String array expression of a record, which is the flight number. I am confused about: "For this assignment, the key field is the record number field.". What is this record number field?
Thanks in advance!
/**
* This method searches the database for an entry which has a first
* field which exactly matches the string supplied. If the required
* record cannot be found, this method returns null. For this
* assignment, the key field is the record number field.
*
* @param toMatch The key field value to match upon for
* a successful find.
* @return DataInfo The matching record.
* @exception DatabaseException Thrown when database file could not be accessed.
*/
public synchronized DataInfo find(String toMatch) throws DatabaseException {
...
}