I have two methods read() and write() as below in a class.
read()
write()
class Store { public void write() { // write to store; } publi
synchronized is the simplest solution so you should explain what you mean by "doesn't seem like work for me" and perhaps show us how you used it.
synchronized
The better solution is to use ReentrantReadWriteLock because it allows concurrent access to readers as well.