I have two methods read() and write() as below in a class.
read()
write()
class Store { public void write() { // write to store; } publi
Use a ReadWriteLock from java.util.concurrent package