Reading over my code versus the solution, I'm curious. In my solution, I used
int i = Integer.parseInt( args[0] ) ;
to turn the year entered on the command line into an integer.
The other way to do this is:
int year = Integer.valueOf( args[0] ).intValue() ;
Now, I don't fully understand the above line.
It looks like valueOf( args[0] ) is getting the integer value of the year
string, so what does the intValue() at the end of the line do?
thanks,
-Bryan
------------------
----
Bryan Welch
bwelch@abcv.com