|
No, it should be new Array(5) if you are going to give it a size. The argument there is the NUMBER of elements, *NOT* the element number of the last element.
0,1,2,3,4 is 5 elements, so Array(5).
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
|