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