Code example for AtomicBoolean

Methods: getAndSet