GeeCON Prague 2014*
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
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: 5300
    
  13

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
 
GeeCON Prague 2014
 
subject: Record Number start index.