Here you can find the source of shiftOff(T[] a)
public static <T> T[] shiftOff(T[] a)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static <T> T[] shiftOff(T[] a) { return (a.length == 0 ? a : Arrays.copyOfRange(a, 1, a.length)); }/* w w w . j a va 2s. co m*/ }