currentNumber
starting at 1.fizz
, buzz
, fizzbuzz
, and number
that threads will call.currentNumber
is within the range and if the current method should handle the number.wait()
to suspend the thread.currentNumber
, and call notifyAll()
to wake up other threads.currentNumber
exceeds n
.