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