Oak
Oak copied to clipboard
clear() throws java.lang.UnsupportedOperationException: remove
Create a map and call .clear()
:
java.lang.UnsupportedOperationException: remove
at java.base/java.util.Iterator.remove(Iterator.java:102)
at java.base/java.util.AbstractCollection.clear(AbstractCollection.java:431)
at java.base/java.util.AbstractMap.clear(AbstractMap.java:297)