Here you can find the source of remove(List aList, Object anObj)
public static boolean remove(List aList, Object anObj)
//package com.java2s; import java.util.*; public class Main { /**/*from w ww. j a va 2 s . c o m*/ * Removes given object from given list (accepts null list). */ public static boolean remove(List aList, Object anObj) { return aList == null ? false : aList.remove(anObj); } /** * Removes range of objects from given list (from start to end, not including end). */ public static void remove(List aList, int start, int end) { for (int i = end - 1; i >= start; i--) aList.remove(i); } }