question: public static char [ ] copyFrom ( char [ ] array , int newLength ) { char [ ] copy = ( char [ ] ) Array . newInstance ( Character . TYPE , newLength ) ; System . arraycopy ( array , 0 , copy , 0 , Math . min ( array . length , newLength ) ) ; return copy ; }
target:  Creates a copy of given array with the given newlength, and of type char[]. 