Submitted by: Octavia Anghel(octaviaanghel@gmail.com)

Monday May 11th 2020 by Octavia Anghel

Language: Java, Expertise: Intermediate - See an example of how to increment integers from 1-1000000 via LongAdder.

The following example increments integers from 1-1000000 via LongAdder:

public class AtomicAdder implements Runnable {

    public static LongAdder count = new LongAdder();
    public void run() {

    public long getCount() {
        return count.sum();
Mobile Site | Full Site