Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicInteger; public class AtomicIntegerDecrementAndGetExp3 { public static void main(String[] args) { AtomicInteger atomicint= new AtomicInteger(-2); atomicint.decrementAndGet(); System.out.println("the value after decrement:"+ atomicint); } }
Output