Question: silentAuction is a HashMap with String key type and Integer value type, representing the name and bid of a bidder. Integer numToRead is read from
silentAuction is a HashMap with String key type and Integer value type, representing the name and bid of a bidder. Integer numToRead is read from input. Complete the for loop to read numToRead strings from input. For each string read:
If the string is a key in silentAuction, then output the key followed by and the value associated with the key.
Otherwise, output the string followed by : not a key".
Ex: If the input is:
Jen Mai Abe
then the output is:
Jen: not a key
Mai
Abe: not a key
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
