Threading in the Gym project - intermediate Java course


Im trying to put the weights, machines management so that that not all the members can do exercises at the same time, but it just keep notify that there are some members still working out
i tried to remove the wait(), method and it works, but i dont understand what is the problem with it
Can anyone help me!!
Thank you


it keeps notifying this