Java Array Remove removeFirstElementFromArray(T[] array)

Here you can find the source of removeFirstElementFromArray(T[] array)

Description

remove First Element From Array

License

Open Source License

Declaration

public static <T> T[] removeFirstElementFromArray(T[] array) 

Method Source Code


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

import java.util.Arrays;

public class Main {
    public static <T> T[] removeFirstElementFromArray(T[] array) {
        return Arrays.copyOfRange(array, 1, array.length);
    }/*from w  w w .j a  v a  2 s  .  c o m*/
}

Related

  1. removeEmtpyStrings(String[] strings)
  2. removeFirst(String[] args)
  3. removeFirst(String[] array)
  4. removeFirst(String[] in)
  5. removeFirst(String[] strArr)
  6. removeFirstTwoArgs(String[] args, int startIndex)
  7. removeFlag(String[] options, String flag)
  8. removeFlagsFromArgs(String[] args)
  9. removeFrom(double[] source, int idx)