📅  最后修改于: 2022-03-11 14:52:09.542000             🧑  作者: Mango
List list = new ArrayList<>();
list.add("Hello World");
String removedStr = list.remove(0); // returns the removed element
boolean removeByElement = list.remove("Hello World"); // true if the element was deleted successfuly