reverse the value,key of hashMap
</span>
Exception in thread "main" java.util.ConcurrentModificationException
at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)
at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516)
at com.test.TestHashtable.main(TestHashtable.java:18)
I don"t know what the reason is.
I used to learn JS, and now I am just learning java