Java Array Sub Array subArray(T[] array, int start, int end)

Here you can find the source of subArray(T[] array, int start, int end)

Description

sub Array

License

Open Source License

Declaration

public static <T> T[] subArray(T[] array, int start, int end) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

import java.util.List;

public class Main {
    public static <T> T[] subArray(T[] array, int start, int end) {
        List<T> list = Arrays.asList(array);
        return list.subList(start, end).toArray(array);
    }//from ww  w  . j  a va2 s  . c o  m
}

Related

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