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