I need to create a private method which would allow 'dinosaurs' to be added to the collection which has been created. For the dinosaurs i have created a HashMap, so i now need to create a private method which will allow the dinosaurs to be added to the hashmap which has been created
Please don't provide the answers directly. As the description of this forum says: We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
It is a good idea to do some research yourself, before you ask a question , if you are trying to learn about HashMap , a good idea would be do some googling and try out some examples. Please use the forum to learn something specific , and give enough information about your doubt. It would be helpful not only to you but also for anybody else who might have similiar issues later.
Thank you for your help. I will try this and see if it compiles. Your example has been an eye opener. I have done background research on hashmaps, its just that i havent done programming in a while and it has slightly slipped my mind. once again thank you
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop