結果 : java copy first n elements of array