question: public static int [ ] copyOf ( int [ ] original , int newLength ) { int [ ] copy = new int [ newLength ] ; System . arraycopy ( original , 0 , copy , 0 , Math . min ( original . length , newLength ) ) ; return copy ; }
target:  Java5 'backport' of Arrays.copyOf