There’s a typo, use keySet()
instead of KeySet()
for (String book : library.keySet()) { }
0
solved What’s wrong with my Java code about HashMap? [closed]
There’s a typo, use keySet()
instead of KeySet()
for (String book : library.keySet()) { }
0
solved What’s wrong with my Java code about HashMap? [closed]