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