[Solved] How to change HashMap as Synchoronized

[ad_1]

For synchronizing a HashMap,you can use

Collections.synchronizedMap(<your hashmap reference>) 

which will return a synchronized map for you, which is thread-safe.

[ad_2]

solved How to change HashMap as Synchoronized