I don’t understand what you mean by null doing dou...
# announcements
n
I don’t understand what you mean by null doing double duty. In the signature of Map’s get method, it’s doing it’s only duty — representing the case when there isn’t a value. If you pass a key that doesn’t have a mapping, you get null. If you pass a key that does have a mapping you get the mapped value. So the result type of the get method is nullable.