Java Array Sub Array subarray(T[] a, int off, int len)

Here you can find the source of subarray(T[] a, int off, int len)

Description

subarray

License

Apache License

Declaration

public static <T> T[] subarray(T[] a, int off, int len) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;

public class Main {
    public static <T> T[] subarray(T[] a, int off, int len) {
        return Arrays.copyOfRange(a, off, off + len);
    }/*ww w .j  a v a 2  s  .co m*/
}

Related

  1. subarray(String[] args, String sep)
  2. subArray(String[] array, int start, int endExclusive)
  3. subArray(String[] data, int index, int length)
  4. subarray(String[] master, int index)
  5. subArray(String[] strings, int nStart)
  6. subArray(T[] array, int start, int end)
  7. subArray(T[] array, int start, int end)
  8. subArray(T[] array, int startIndex, int endIndex)
  9. subArray(T[] origin, int start, int length)