Why is isbnToPrice.get(key) in this function? It does not seem to do anything, what am I missing?
public void insert(Integer key, Integer value) {
// We add the value for key only if key is not present - we don't update
// existing values.
isbnToPrice.get(key); ***Why is this line here, what does it do?***
if (!isbnToPrice.containsKey(key)) {
isbnToPrice.put(key, value);
}
}