Here you can find the source of removeFrom(List
public static <T> List<T> removeFrom(List<T> list, T member)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static <T> List<T> removeFrom(List<T> list, T member) { List<T> newList = new ArrayList<T>(list); newList.remove(member);//from w ww .j a va2 s . c o m return newList; } }