Here you can find the source of shift(String[] args, int count)
public static String[] shift(String[] args, int count)
//package com.java2s; //License from project: Open Source License public class Main { public static String[] shift(String[] args, int count) { String[] result = new String[args.length - count]; for (int i = 0; i < result.length; i++) { result[i] = args[(i + count)]; }// ww w . ja v a2s. co m return result; } }