Javaリストremove
set

removeリスト

size

指定したインデックスまたは値の要素を削除します。

構文

list.remove(index) / list.remove(obj)