How to synchronised a variable in a class such that the variable will remain each time a thread is run

Printable View