I'm running this bit of code:
and getting this error: java.util.ConcurrentModificationException
I'm guessing it hasn't finished removing the last key before trying to remove the current key...?
Anybody have an idea? Maybe there's a better way to remove these keys?
remove keys that match a pattern:
Public Sub ClearOBList
For Each key As String In xassets.Keys 'xassets is just a map
If key.Contains("-ob-") Then
xassets.Remove(key)
End If
Next
End Sub
and getting this error: java.util.ConcurrentModificationException
I'm guessing it hasn't finished removing the last key before trying to remove the current key...?
Anybody have an idea? Maybe there's a better way to remove these keys?