📜  java arraylist remove - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:41.835000             🧑  作者: Mango

代码示例1
//create ArrayList
ArrayList arrayList = new ArrayList();
//add item to ArrayList
arrayList.add("item");
//check if ArrayList contains item (returns boolean)
System.out.println(arrayList.contains("item"));
//remove item from ArrayList
arrayList.remove("item");