• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S in find method, n matches n?

 
Mingwei Jiang
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the instruction saying that in the find method, Field n in the database file is described by criteria[n].

Does that mean field 1 (the first column) is described by criteria[1]? Or field 0 (the first column) is described by criteria[0]? My understanding as of now is field 1 is described by criteria[1], which means criteria[0] will be no use to me, right?

I think I should get my understanding right because they might use some automatic test tools for testing this method. Or can I also write this on my choices doc? But the automatic testing results will vary from those 2.

Any ideas? Thanks.
 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mingwei Jiang:
I have the instruction saying that in the find method, Field n in the database file is described by criteria[n].

Does that mean field 1 (the first column) is described by criteria[1]? Or field 0 (the first column) is described by criteria[0]? My understanding as of now is field 1 is described by criteria[1], which means criteria[0] will be no use to me, right?

I think I should get my understanding right because they might use some automatic test tools for testing this method. Or can I also write this on my choices doc? But the automatic testing results will vary from those 2.

Any ideas? Thanks.


As a java array must always start from position 0 so criteria[0] will always match to field[0] in the find method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic