One point I spotted is that the returned array is always an Object[], no matter what the input array type is. This is different to toArray(Object[]) on a List. I'm not sure that its right either.
Stephen
Do you suggest we implement checking the type of the input array and creating the subarray with the same type, using reflection, like I see, for example in java.util.ArrayList.toArray(Object[]) ?
Also, I think we can provide implementations for all the primitive types and String. I would be willing to implement equivalent methods for all these types right away.
public static int[] ArrayUtils.subarray(int[] array, int startIndexInclusive, int endIndexExclusive);
etc...
Ash
_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
