Here you can find the source of shift(String[] array)
public static String[] shift(String[] array)
//package com.java2s; //License from project: Apache License public class Main { public static String[] shift(String[] array) { return shift(array, 1); }/*from w w w . j a v a 2 s .com*/ public static String[] shift(String[] array, int n) { if (n <= 0) { throw new IllegalArgumentException("n must a non-negative number."); } if (n >= array.length) { return new String[0]; } String[] dest = new String[array.length - n]; System.arraycopy(array, n, dest, 0, array.length - n); return dest; } }