Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132930 views
License: OTHER
1
public class Sum implements Runnable {
2
private final int UpperEnd;
3
4
public Sum(int upperEnd) {
5
UpperEnd = upperEnd;
6
}
7
8
@Override
9
public void run() {
10
for (int i = 0; i < UpperEnd; i++) {
11
Main.bigSum.incrementAndGet();
12
}
13
}
14
}
15
16