Code example for AtomicInteger

Methods: compareAndSet, incrementAndGet