Question: In java, how do I create a put method and get method (without using the ones provided by hashmaps). The put method has 2

In java, how do I create a put method and get method (without using the ones provided by hashmaps). The put method has 2 parameters value (class v) and key (class K) while the get method has 1 paramter key (class K). For the put method, It has to give back the value that is connected to whatever key argument is given. If the set array does not contain the key you have to give back nothing or null. For the get method, it needs to give back the amount of mappings for key and value that are inside the map. The interface I am given makes an object (account) by utilizing the pair of key and value and it also puts in the object at whatever index it needs to be in. By looking that the key's hash I need to update the key's value if it is a part of the map already.
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
To implement a custom HashMap without using the builtin HashMap class in Java you can create your ow... View full answer
Get step-by-step solutions from verified subject matter experts
