SyntaxFix
Write A Post
Hire A Developer
Questions
So you know the key, value pair that you want to delete in advance? It's just much clearer to do this, then:
table.delete(key); for (K key: table.keySet()) { // do whatever you need to do with the rest of the keys }