Java List Tail tail(List list)

Here you can find the source of tail(List list)

Description

tail

License

Open Source License

Declaration

public static <A> List<A> tail(List list) 

Method Source Code


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

import java.util.ArrayList;

import java.util.Collections;
import java.util.List;

public class Main {
    public static <A> List<A> tail(List list) {
        List result = new ArrayList<>(list);
        result.remove(0);/*  ww w. j  a  v  a2 s .c  o  m*/
        return Collections.unmodifiableList(result);
    }
}

Related

  1. tail(final List list)
  2. tail(List list, int tailLength)
  3. tail(List lines, int number)
  4. tail(List lst, int from)
  5. tail(List l)