Here you can find the source of arraySlice(int[] source, int start, int count)
public static int[] arraySlice(int[] source, int start, int count)
//package com.java2s; public class Main { /**/*from w w w .ja va 2 s .c o m*/ * Returns a range of elements of source from start to end of the array. */ public static int[] arraySlice(int[] source, int start, int count) { int[] slice = new int[count]; System.arraycopy(source, start, slice, 0, count); return slice; } }