Java Array Range Copy copyOfRange(String[] array, int initialIndex, int endIndex)

Here you can find the source of copyOfRange(String[] array, int initialIndex, int endIndex)

Description

copy Of Range

License

Open Source License

Declaration

public static String[] copyOfRange(String[] array, int initialIndex, int endIndex) 

Method Source Code

//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*/
}

Related

  1. copyOfRange(final byte[] original, final int from, final int to)
  2. copyOfRange(final double[] data, final int start, final int end)
  3. copyOfRange(int[] anArray, int from, int to)
  4. copyOfRange(int[] old, int from, int to)
  5. copyOfRange(int[] original, int from, int to)
  6. copyOfRange(String[] original, int from, int newLength)