Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird interface

 
Eric Jin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
package suncertify.db;
public interface DBAccess
{
// Reads a record from the file. Returns an array where each
// element is a record value.
public String [] readRecord(long recNo)
throws RecordNotFoundException;
......
}

I'm not sure what the return value means. Because the parameter is Record No,so there should be only one record for return. Why return type is String array?
Or Each element of the array saves one part of the record? For example, String [1] means name, String [2] meams location ...?

Thanks,
 
Al Purvis
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding of this is that the array contains a string for the each data element within the record. For example if the record is for a person that is 45 years old it could contain {"John","Doe","45"}.
 
Eric Jin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic