Here you can find the source of subarray(T[] a, int off, int len)
public static <T> T[] subarray(T[] a, int off, int len)
//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*/ }