Trims an array to a specified length.
public static Object[] trimArray( Object[] ar, int len )
ar
The array to trim.
len
The specified length.
Returns the array, or returns null if the array is null.