We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e45986 commit 6946acaCopy full SHA for 6946aca
java-lock-objects-and-atomic-variables/src/AtomicIntegerExample.java
@@ -28,9 +28,9 @@ public static void main(String[] args) throws InterruptedException {
28
executorService.submit(() -> atomicCounter.incrementAndGet());
29
}
30
31
- System.out.println("Final Count is : " + atomicCounter.getCount());
32
-
33
executorService.shutdown();
34
executorService.awaitTermination(60, TimeUnit.SECONDS);
+
+ System.out.println("Final Count is : " + atomicCounter.getCount());
35
36
0 commit comments