What is the result of:
new ConcurrentHashMap(Map.of(1,2,3,4)).contains(1)
true or false?
The answer is false, not because of a strange behaviour of ConcurrentHashMap but because contains
checks for values of a Map not for Keys.
What is the result of:
new ConcurrentHashMap(Map.of(1,2,3,4)).contains(1)
true or false?
The answer is false, not because of a strange behaviour of ConcurrentHashMap but because contains
checks for values of a Map not for Keys.
newcubator GmbH
Bödekerstraße 22
30161 Hannover
newcubator GmbH
Westenhellweg 85-89
44137 Dortmund