Java List Remove removeElement(T element, List list)

Here you can find the source of removeElement(T element, List list)

Description

remove Element

License

Open Source License

Parameter

Parameter Description
element a parameter
list a parameter

Declaration

public static <T> void removeElement(T element, List<T> list) 

Method Source Code

//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);
    }
}

Related

  1. removeAll(List toRemoveFrom, Collection elementsToRemove)
  2. removeAllNull(List list)
  3. removeAllNulls(List list)
  4. removeBlankLine(List lines)
  5. removeByRef(List list, Object obj)
  6. removeElementsFromList(List inputList, List elementsToRemove)
  7. removeEmpties(List original)
  8. removeEmpty(List strings)
  9. removeEmptyColumns(List data)