Here you can find the source of tail(List list)
public static <A> List<A> tail(List list)
//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); } }