Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2beadad

Browse files
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‎

Lines changed: 3 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /