Greetings to all,
I am facing a strange problem here. I have a HashMap having <String,Properties> signature. It contains 3 pairs of key,value set, namely, (value, prop), (really, prop), (belly,prop). It was initialised in a static {} bock by reading 3 separate files having 50 key1=value1, key2=value2 ..... key50=value50 and similarly for other files key1=really1 .... key50=really50 and key1=belly1 ... key50=belly50.
HashMap is a static variable, so only one instance.
Now, in main I create 3 threads and read all values and print them via thread. I am passing value / really / belly as parameter in threads, but it prints the last initialised belly all the time, instead of value or really.
Whats wrong I am doing here ? Any light. ? Also, attaching supporting files if anybody wants to run.