Code example for AtomicReference

Methods: getAndSet