Class FizzBuzz
- java.lang.Object
-
- g1101_1200.s1195_fizz_buzz_multithreaded.FizzBuzz
-
public class FizzBuzz extends Object
-
-
Constructor Summary
Constructors Constructor Description FizzBuzz(int n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buzz(Runnable printBuzz)
void
fizz(Runnable printFizz)
void
fizzbuzz(Runnable printFizzBuzz)
void
number(IntConsumer printNumber)
-
-
-
Method Detail
-
fizz
public void fizz(Runnable printFizz) throws InterruptedException
- Throws:
InterruptedException
-
buzz
public void buzz(Runnable printBuzz) throws InterruptedException
- Throws:
InterruptedException
-
fizzbuzz
public void fizzbuzz(Runnable printFizzBuzz) throws InterruptedException
- Throws:
InterruptedException
-
number
public void number(IntConsumer printNumber) throws InterruptedException
- Throws:
InterruptedException
-
-