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