Analyze ConcurrentHashMap. In a separate file, create a Producer class that will: 1. every half second, add a key and value to a ConcurrentHashMap, where the key is the counter starting from 1, and the value is a phrase like "Some text for i", e.g. "Some text for 1".
The world doesn't change, we change
You must be signed in to leave a comment
25 July 2020, 10:46
Hint: Although 2.) says "the value is a phrase like "Some text for i", e.g. "Some text for 1"." the validator actually only accepts exactly this phrase.