Here you can find the source of removeFirst(String[] in)
Parameter | Description |
---|---|
in | The array to copy. Must not be null |
public static String[] removeFirst(String[] in)
//package com.java2s; //License from project: Creative Commons License import java.util.Arrays; public class Main { /**/*from w w w . j a v a2 s. c o m*/ * Returns a copy of in, but without the first element. * * @param in The array to copy. Must not be null * @return The copy */ public static String[] removeFirst(String[] in) { if (in.length == 0) { return new String[0]; } return Arrays.copyOfRange(in, 1, in.length); } }