This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
You need to invoke this program with commandline parameters. Otherwise the array will have a size of 0 and you're trying to access an element which results in an ArrayIndexOutOfBoundsException. You need to do something like
java candidate 1 wouter 4-3-2011
And by the way classnames should begin with an uppercase character.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.