Here you can find the source of subArray(T[] origin, int start, int length)
public static <T> T[] subArray(T[] origin, int start, int length)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.List; public class Main { public static <T> T[] subArray(T[] origin, int start, int length) { return subList(origin, start, length).toArray(origin); }//from www . j a va 2 s . co m public static <T> T[] subArray(T[] origin, int start) { return subList(origin, start).toArray(origin); } public static <T> List<T> subList(List<T> origin, int start, int length) { return origin.subList(start, start + length); } public static <T> List<T> subList(List<T> origin, int start) { return origin.subList(start, origin.size()); } public static <T> List<T> subList(T[] origin, int start, int length) { return subList(Arrays.asList(origin), start, length); } public static <T> List<T> subList(T[] origin, int start) { return subList(Arrays.asList(origin), start); } }