Here you can find the source of subArray(E[] array, int start)
public static <E> E[] subArray(E[] array, int start)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static <E> E[] subArray(E[] array, int start) { return subArray(array, start, array.length); }/*from ww w . java 2 s.co m*/ public static <E> E[] subArray(E[] array, int start, int end) { final E[] subArray = Arrays.copyOf(array, end - start); System.arraycopy(array, start, subArray, 0, end - start); return subArray; } }