My HashMap which contains new Doctor keeps overriding the previous one whenever I use addDoctor method
I use HashMap
to store String followed by object Doctor
, where the String is the copy of code
in Doctor
.
My hashMap which contain new Doctor keep overriding the previous one whenever I use addDoctor method, I have no I idea what is the proble?
I use HashMap to store String followed by Object Doctor, the String is the copy of Code in Doctor