Here you can find the source of shift(String[] in)
public static String[] shift(String[] in)
//package com.java2s; /**//from www . j a va 2 s.c o m * @author Morgan Conrad * @see <a href="http://opensource.org/licenses/MIT">This software is released under the MIT License</a> * @since Copyright (c) 2013 by Morgan Conrad */ public class Main { public static String[] shift(String[] in) { String[] copy = new String[in.length - 1]; System.arraycopy(in, 1, copy, 0, in.length - 1); return copy; } }