aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Record Number start index. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Record Number start index." Watch "Record Number start index." New topic
Author

Record Number start index.

Carl Jokl
Greenhorn

Joined: Oct 09, 2008
Posts: 11
This may be a simple question which has just occurred to me for the sake of the automated portion of the testing. What record number index pattern should be used? Should it be array style (0 based) or start at 1. Getting that wrong could potentially make the automated testing fail but maybe that much wasn't made clear or I missed it.


Programming isn't about writing code. It is about managing complexity.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4351

Hi Carl,

Here is another recent discussion about this topic.

Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Anne Crace
Ranch Hand

Joined: Aug 29, 2005
Posts: 223
I used 1 as my start number because I displayed it in my table - more intuitive to the user. I documented it in my choices.txt. I don't think this one is going to make or break you. Roel passed using 0, I passed using 1. You can choose whichever one feels better to you. I might add my decision added complexity to my solution.


SCJP, SCJD
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Record Number start index.
 
Similar Threads
Bodgitt & Scarper - recNo
And the winners are...
How to release lock when RecordNotFoundException Occurs?
Problems in using RMS in WSDD
urlybird 1.1.1 (int recNo)