Here you can find the source of copyOfRange(String[] original, int from, int newLength)
public static String[] copyOfRange(String[] original, int from, int newLength)
//package com.java2s; public class Main { public static String[] copyOfRange(String[] original, int from, int newLength) { String[] copy = new String[newLength]; newLength = Math.min(original.length - from, newLength); System.arraycopy(original, from, copy, 0, newLength); return copy; }//from w ww . ja v a2 s . com }