Skip to content

Instantly share code, notes, and snippets.

@akshanshjain95
Created June 24, 2019 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akshanshjain95/85c7089f7e760c1b30f04da7c88f337b to your computer and use it in GitHub Desktop.
Save akshanshjain95/85c7089f7e760c1b30f04da7c88f337b to your computer and use it in GitHub Desktop.
import java.util.concurrent.atomic.AtomicInteger;
public class Atomicity {
AtomicInteger i;
public void incrementNumber() {
i.incrementAndGet();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment