Java Array Range Copy copyOfRange(String[] original, int from, int newLength)

Here you can find the source of copyOfRange(String[] original, int from, int newLength)

Description

copy Of Range

License

Open Source License

Declaration

public static String[] copyOfRange(String[] original, int from, int newLength) 

Method Source Code

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

Related

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