Here you can find the source of copyOfRange(String[] array, int initialIndex, int endIndex)
public static String[] copyOfRange(String[] array, int initialIndex, int endIndex)
//package com.java2s; //License from project: MIT License public class Main { public static String[] copyOfRange(String[] array, int initialIndex, int endIndex) { String[] tempArray = new String[endIndex - initialIndex]; for (int i = initialIndex; i < endIndex; i++) tempArray[i - initialIndex] = array[i]; return tempArray; }/*from w w w .j a v a 2 s. co m*/ }