public static short[] copyOf(short[] shortArray) {

    	short[] copy = new short[shortArray.length];
        System.arraycopy(shortArray, 0, copy, 0, shortArray.length);
        return copy;
    }
public static short [ ] copyOf ( short [ ] shortArray ) { short [ ] copy = new short [ shortArray . length ] ; System . arraycopy ( shortArray , 0 , copy , 0 , shortArray . length ) ; return copy ; }
This method does a similar job to JSE 6.0's Arrays.copyOf() method and overloads the method for use with arrays of short
@param shortArray The array to copy
@return A copy of the input, of component type U