Here you can find the source of shift(String[] original, int offset)
public static String[] shift(String[] original, int offset)
//package com.java2s; //License from project: Open Source License public class Main { public static String[] shift(String[] original, int offset) { if (original.length <= offset) { throw new ArrayIndexOutOfBoundsException(); }//from w w w . ja v a 2 s .c om String[] output = new String[original.length - offset]; for (int i = offset; i < original.length; i++) { output[i - offset] = original[i]; } return output; } }