This content has been marked as final. Show 2 replies
I disagree because if you look at the setCustomerBalance method you are putting an IntegerAnd what happens if you call customerBalance() (which should really be named getCustomerBalance()) with a customer ID that doesn't exist?
instance that is initialized with an int primitive into the Map.
But of course.
I missed the obvious... >:-(
Sorry, yes, that should be getCustomerBalance.
I just threw the code up there quickly.
Thanks for that & regards.