Since HashMaps are quite different from arrays, we can't iterate over them in the same way. Let's try go through the keys of a HashMap!

If you need the values without any keys, you can also use 'people.values()'.

Wouldn't it make more sense to use the value rather than the key?