Here you can find the source of removeElement(T element, List
Parameter | Description |
---|---|
element | a parameter |
list | a parameter |
public static <T> void removeElement(T element, List<T> list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**// www. j ava 2 s . c o m * @param element * @param list */ public static <T> void removeElement(T element, List<T> list) { if (list != null) list.remove(element); } }