[Solved] How to change HashMap as Synchoronized


For synchronizing a HashMap,you can use

Collections.synchronizedMap(<your hashmap reference>) 

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

solved How to change HashMap as Synchoronized