Here you can find the source of removeFirst(String[] array)
public static String[] removeFirst(String[] array)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static String[] removeFirst(String[] array) { List<String> newStrings = new ArrayList<String>(); for (int i = 0; i + 1 < array.length; i++) { newStrings.add(array[i + 1]); }/* w w w . j av a 2s.c o m*/ return newStrings.toArray(new String[0]); } }