Skip to content

Commit 2beadad

Browse files
authored
Update Solution.java
1 parent 95f4ca9 commit 2beadad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

solution/1100-1199/1117.Building H2O/Solution.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class H2O {
22

3-
private Semaphore h=new Semaphore(2);
4-
private Semaphore o=new Semaphore(0);
3+
private Semaphore h = new Semaphore(2);
4+
private Semaphore o = new Semaphore(0);
55
public H2O() {
66

77
}
@@ -21,4 +21,4 @@ public void oxygen(Runnable releaseOxygen) throws InterruptedException {
2121
releaseOxygen.run();
2222
h.release(2);
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)