On Sun, 18 Dec 2005 09:16:28 -0800, castillo.bryan wrote:
> Note: If you allocate the right size for the array, the toArray method
> will not have to allocate another array.
>
> SomeClass[] sc1 = (SomeClass[])v.toArray(new SomeClass[v.size()]);
It will also save a few very expensive reflection calls, so this idom is
almost always the better choice.

Signature
You can't run away forever,
But there's nothing wrong with getting a good head start.
--- Jim Steinman, "Rock and Roll Dreams Come Through"