我正在尝试删除List
.
list.remove(key);
但是,它会引发异常:
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at java.util.AbstractCollection.remove(AbstractCollection.java:293)
at bean.Bean.deleteRow(Bean.java:46)
这是如何引起的,我该如何解决?