Problem
Write a code that involves creating two elements with names “Educative” and “Inc.” using the CoroutineName
class. When we add another element with the same key, the new element replaces the previous one, and the output will be “Inc.”
Restriction
The output will be available in the terminal.
Output
Educative
Inc.
Inc.
Get hands-on with 1200+ tech skills courses.