Java Array Remove removeFirst(String[] strArr)

Here you can find the source of removeFirst(String[] strArr)

Description

remove First

License

Open Source License

Declaration

public static String[] removeFirst(String[] strArr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

public class Main {
    public static String[] removeFirst(String[] strArr) {
        if (strArr.length == 0) {
            return null;
        }//  w w w .j  a v a2s.  c om
        return Arrays.copyOfRange(strArr, 1, strArr.length);
    }
}

Related

  1. removeEmpties(String[] array)
  2. removeEmtpyStrings(String[] strings)
  3. removeFirst(String[] args)
  4. removeFirst(String[] array)
  5. removeFirst(String[] in)
  6. removeFirstElementFromArray(T[] array)
  7. removeFirstTwoArgs(String[] args, int startIndex)
  8. removeFlag(String[] options, String flag)
  9. removeFlagsFromArgs(String[] args)