In Java-- Using the map ADT Operations: Create empty map in a class Find key in
ID: 3603848 • Letter: I
Question
In Java--
Using the map ADT
Operations:
Create empty map in a class
Find key in map in a class
Find value of a given key, if key exists
Insert a key with its associated value, if key does not already exist
Remove a key and its associated value
Implement map ADT to map employee numbers (key) to names (value).
Both are Strings.
You need to create a driver class should add at least 3 people,
search for 2 people by the key and remove all keys when done.
Here you define a class Map, decide how you are storing key, value pairs
Then have a Map() constructor, a method returning a boolean called findKey,
a method returning the value of a given key getValue(key) if the key exists, etc...
Then make a MapTester file.
Explanation / Answer
Iterates through the map entries and calls fn(key, value) for each one. The keys are processed in an undetermined order.
Usage:
Removes any entry for key from this map.
Usage:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.