The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Record Number start index. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Record Number start index." Watch "Record Number start index." New topic

Record Number start index.

Carl Jokl

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

Joined: Jul 19, 2004
Posts: 8384

Hi Carl,

Here is another recent discussion about this topic.

Kind regards,

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
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.

I agree. Here's the link:
subject: Record Number start index.
It's not a secret anymore!