Fill a map object by using readline
Is it possible to fill a map object by using readline? I would enter an input of String(key) - Integer(value) pair like “cake 25” from the console and wish to store it in a map object Map. How can it be achieved?
1 post - 1 participant
Read full topic