// "Use removal by object" "false" import java.util.List; class Test { void test(List list, List list2, String key) { int idx = list.indexOf(key); list2.remove(idx); } }