We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2a70cd commit 95f4ca9Copy full SHA for 95f4ca9
solution/1100-1199/1195.Fizz Buzz Multithreaded/Solution.java
@@ -47,14 +47,14 @@ public void number(IntConsumer printNumber) throws InterruptedException {
47
nSema.acquire();
48
if (i % 3 == 0 && i % 5 == 0) {
49
fbSema.release();
50
- }else if (i % 3 == 0) {
+ } else if (i % 3 == 0) {
51
fSema.release();
52
- }else if (i % 5 == 0) {
+ } else if (i % 5 == 0) {
53
bSema.release();
54
- }else {
+ } else {
55
printNumber.accept(i);
56
nSema.release();
57
}
58
59
60
-}
+}
0 commit comments