Anthony,
> Object[] srcArray =
> new MyClass[]{null, null, null, null};
[quoted text clipped - 4 lines]
> System.arraycopy(srcArray, 0, targetArray, 0,
> srcArray.length);
Not quite copy-free, but better than a for-loop. And it worked. Thanks.
Cheers, Paul
Aleksander =?iso-8859-2?Q?Str=B1czek?= - 20 Feb 2005 13:32 GMT
> Anthony,
>> Object[] srcArray =
[quoted text clipped - 7 lines]
>
> Not quite copy-free, but better than a for-loop. And it worked. Thanks.
If you have srcArray
Object[] srcArray =
new MyClass[]{null, null, null, null};
you can just cast it:
MyClass[] targetArray = (MyClass[]) srcArray;
Copying is required if srcArray is created like tihs:
Object[] srcArray = new Object[]{null};

Signature
Regards, Olek
Anthony Borla - 21 Feb 2005 02:19 GMT
> Anthony,
>
[quoted text clipped - 8 lines]
>
> Not quite copy-free, but better than a for-loop.
Indeed, I should think *very significantly better* than a 'for' loop ;) !
> And it worked. Thanks.
More than glad to help get the job done :) !
Cheers,
Anthony Borla