Java tutorial
//package com.java2s; import java.util.Collection; public class Main { public static <T> void removeAll(Collection<T> c, T... items) { assert c != null; assert items != null; for (T item : items) { c.remove(item); } } }