SyntaxFix
Write A Post
Hire A Developer
Questions
To be able to call notify() you need to synchronize on the same object.
synchronized (someObject) { someObject.wait(); } /* different thread / object */ synchronized (someObject) { someObject.notify(); }