The syntax for notify & notifyAll is the same as for wait.
Get the lock/monitor for the object and call notify. Only one thread will wake up and get the lock. The other waiting threads will have...